summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-29 18:13:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-29 18:13:00 +0200
commit8579d4b2f0cc7d46dc75e0a0e42d556d653463fc (patch)
tree8ab65fc1ed0ff0371f552430a33f5ebf57bc5dea /configure
parent1c66807636ed8da5cf81d75cc8bb2726c6d6bc21 (diff)
parent7baa115a33ab516c85ac94f6c5cdaee73e65ddf8 (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: build: export filtered -lz flag in config.mak build: add separate setting for host linker configure: probe_cc: use separate variable for linker output flag x86: Always compile files with functions that are called unconditionally x86: mpegvideoenc: fix linking with --disable-mmx x86: mpegvideoenc: Do not abuse HAVE_ variables for template instantiation Conflicts: Makefile configure libavcodec/x86/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 15 insertions, 5 deletions
diff --git a/configure b/configure
index 4b86c8ee87..6fc81f4838 100755
--- a/configure
+++ b/configure
@@ -242,6 +242,7 @@ Advanced options (experts only):
--ld=LD use linker LD [$ld_default]
--host-cc=HOSTCC use host C compiler HOSTCC
--host-cflags=HCFLAGS use HCFLAGS when compiling for host
+ --host-ld=HOSTLD use host linker HOSTLD
--host-ldflags=HLDFLAGS use HLDFLAGS when linking for host
--host-libs=HLIBS use libs HLIBS when linking for host
--host-os=OS compiler host OS [$target_os]
@@ -1444,6 +1445,7 @@ CMDLINE_SET="
extra_version
host_cc
host_cflags
+ host_ld
host_ldflags
host_libs
host_os
@@ -2050,6 +2052,7 @@ LD_O='-o $@'
FORCE_INC="-include"
HOSTCC_C='-c'
HOSTCC_O='-o $@'
+HOSTLD_O='-o $@'
host_cflags='-D_ISOC99_SOURCE -D_XOPEN_SOURCE=600 -O3 -g'
host_libs='-lm'
@@ -2408,7 +2411,7 @@ probe_cc(){
pfx=$1
_cc=$2
- unset _type _ident _cc_c _cc_e _cc_o _flags _cflags _ldflags
+ unset _type _ident _cc_c _cc_e _cc_o _ld_o _flags _cflags _ldflags
unset _depflags _DEPCMD _DEPFLAGS
_flags_filter=echo
@@ -2548,9 +2551,7 @@ set_ccvars CC
probe_cc hostcc "$host_cc"
host_cflags_filter=$_flags_filter
-host_ldflags_filter=$_flags_filter
add_host_cflags $_flags $_cflags
-add_host_ldflags $_flags $_ldflags
set_ccvars HOSTCC
test -n "$cc_type" && enable $cc_type ||
@@ -2559,7 +2560,8 @@ test -n "$cc_type" && enable $cc_type ||
: ${as_default:=$cc}
: ${dep_cc_default:=$cc}
: ${ld_default:=$cc}
-set_default ar as dep_cc ld
+: ${host_ld_default:=$host_cc}
+set_default ar as dep_cc ld host_ld
probe_cc as "$as"
asflags_filter=$_flags_filter
@@ -2570,7 +2572,12 @@ probe_cc ld "$ld"
ldflags_filter=$_flags_filter
add_ldflags $_flags $_ldflags
test "$cc_type" != "$ld_type" && add_ldflags $cc_ldflags
-LD_O=${_cc_o-$LD_O}
+LD_O=${_ld_o-$LD_O}
+
+probe_cc hostld "$host_ld"
+host_ldflags_filter=$_flags_filter
+add_host_ldflags $_flags $_ldflags
+HOSTLD_O=${_ld_o-$HOSTLD_O}
if [ -z "$CC_DEPFLAGS" ] && [ "$dep_cc" != "$cc" ]; then
probe_cc depcc "$dep_cc"
@@ -4034,6 +4041,7 @@ ASDEP_FLAGS=$ASDEP_FLAGS
CC_DEPFLAGS=$CC_DEPFLAGS
AS_DEPFLAGS=$AS_DEPFLAGS
HOSTCC=$host_cc
+HOSTLD=$host_ld
HOSTCFLAGS=$host_cflags
HOSTEXESUF=$HOSTEXESUF
HOSTLDFLAGS=$host_ldflags
@@ -4045,10 +4053,12 @@ HOSTCCDEP_FLAGS=$HOSTCCDEP_FLAGS
HOSTCC_DEPFLAGS=$HOSTCC_DEPFLAGS
HOSTCC_C=$HOSTCC_C
HOSTCC_O=$HOSTCC_O
+HOSTLD_O=$HOSTLD_O
TARGET_EXEC=$target_exec
TARGET_PATH=$target_path
LIBS-ffplay=$sdl_libs
CFLAGS-ffplay=$sdl_cflags
+ZLIB=$($ldflags_filter -lz)
LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD
EXTRALIBS=$extralibs
INSTALL=$install