Browse code

configure: simplify some OS-specific flag setting

Originally committed as revision 24060 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2010/07/06 02:31:18
Showing 1 changed files
... ...
@@ -2114,7 +2114,7 @@ case $target_os in
2114 2114
         enable malloc_aligned
2115 2115
         ;;
2116 2116
     bsd/os)
2117
-        osextralibs="-lpoll -lgnugetopt"
2117
+        add_extralibs -lpoll -lgnugetopt
2118 2118
         strip="strip -d"
2119 2119
         ;;
2120 2120
     darwin)
... ...
@@ -2123,7 +2123,7 @@ case $target_os in
2123 2123
         enabled ppc && add_asflags -force_cpusubtype_ALL
2124 2124
         SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR) -Wl,-read_only_relocs,suppress'
2125 2125
         strip="${strip} -x"
2126
-        FFLDFLAGS="-Wl,-dynamic,-search_paths_first"
2126
+        add_ldflags -Wl,-dynamic,-search_paths_first
2127 2127
         SLIBSUF=".dylib"
2128 2128
         SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'
2129 2129
         SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'
... ...
@@ -2199,7 +2199,7 @@ case $target_os in
2199 2199
     os/2*)
2200 2200
         strip="lxlite"
2201 2201
         ln_s="cp -f"
2202
-        FFLDFLAGS="-Zomf -Zbin-files -Zargs-wild -Zmap"
2202
+        add_ldflags -Zomf -Zbin-files -Zargs-wild -Zmap
2203 2203
         SHFLAGS='$(SUBDIR)$(NAME).def -Zdll -Zomf'
2204 2204
         FFSERVERLDFLAGS=""
2205 2205
         LIBSUF="_s.a"
... ...
@@ -2234,11 +2234,6 @@ check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PI
2234 2234
 
2235 2235
 set_default $PATHS_LIST
2236 2236
 
2237
-add_extralibs $osextralibs
2238
-
2239
-# Combine FFLDFLAGS and the LDFLAGS environment variable.
2240
-LDFLAGS="$FFLDFLAGS $LDFLAGS"
2241
-
2242 2237
 # we need to build at least one lib type
2243 2238
 if ! enabled_any static shared; then
2244 2239
     cat <<EOF