aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-08-28 16:06:56 +0100
committerMans Rullgard <mans@mansr.com>2012-08-29 14:16:54 +0100
commit8db73c61a7b24bc4f4d3d415bea2990d17d16354 (patch)
tree4b11648bd02bc803797504d4d055f1eb91cc8b7d /configure
parentbbabeb56fac38347b976e7b84639de53306e4bf2 (diff)
downloadffmpeg-8db73c61a7b24bc4f4d3d415bea2990d17d16354.tar.gz
build: allow non-standard variations of linker -l/-L flags
This enables replacing the -l and -L flags used to specify the just-built libraries when linking the tools and shared libs with non-standard syntaxes. System library flags are already handled by the filtering mechanism in configure. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 32118d0140..5e0d76ef5b 100755
--- a/configure
+++ b/configure
@@ -1785,6 +1785,8 @@ CC_C='-c'
CC_E='-E -o $@'
CC_O='-o $@'
LD_O='-o $@'
+LD_LIB='-l%'
+LD_PATH='-L'
HOSTCC_C='-c'
HOSTCC_O='-o $@'
HOSTLD_O='-o $@'
@@ -2132,7 +2134,8 @@ probe_cc(){
pfx=$1
_cc=$2
- unset _type _ident _cc_c _cc_e _cc_o _ld_o _flags _cflags _ldflags
+ unset _type _ident _cc_c _cc_e _cc_o _flags _cflags
+ unset _ld_o _ldflags _ld_lib _ld_path
unset _depflags _DEPCMD _DEPFLAGS
_flags_filter=echo
@@ -2294,6 +2297,8 @@ ldflags_filter=$_flags_filter
add_ldflags $_flags $_ldflags
test "$cc_type" != "$ld_type" && add_ldflags $cc_ldflags
LD_O=${_ld_o-$LD_O}
+LD_LIB=${_ld_lib-$LD_LIB}
+LD_PATH=${_ld_path-$LD_PATH}
probe_cc hostld "$host_ld"
host_ldflags_filter=$_flags_filter
@@ -3523,6 +3528,8 @@ AS_O=$AS_O
CC_C=$CC_C
CC_O=$CC_O
LD_O=$LD_O
+LD_LIB=$LD_LIB
+LD_PATH=$LD_PATH
DLLTOOL=$dlltool
LDFLAGS=$LDFLAGS
LDFLAGS-avserver=$AVSERVERLDFLAGS