summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-03-06 13:57:34 +0000
committerMans Rullgard <mans@mansr.com>2011-03-24 20:42:22 +0000
commit4a7e068b8fb15b646c465d360ee478e02d100ca4 (patch)
treebd3a2d36ff514e13feaad8d6f2ff36bd9adc536f /configure
parent2d3b21ffb91610f806a6c550dc142520d7a11e50 (diff)
configure: check for --as-needed support early
This moves the check for --as-needed linker support before all library tests, ensuring consistent behaviour between the checks and the actual link step. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index bb4f52cbca..38fd46074c 100755
--- a/configure
+++ b/configure
@@ -2722,6 +2722,8 @@ if enabled asm; then
$nogas "GNU assembler not found, install gas-preprocessor"
fi
+check_ldflags -Wl,--as-needed
+
if check_func dlopen; then
ldl=
elif check_func dlopen -ldl; then
@@ -2951,7 +2953,6 @@ enabled extra_warnings && check_cflags -Winline
# add some linker flags
check_ldflags -Wl,--warn-common
-check_ldflags -Wl,--as-needed
check_ldflags '-Wl,-rpath-link,\$(BUILD_ROOT)/libpostproc -Wl,-rpath-link,\$(BUILD_ROOT)/libswscale -Wl,-rpath-link,\$(BUILD_ROOT)/libavfilter -Wl,-rpath-link,\$(BUILD_ROOT)/libavdevice -Wl,-rpath-link,\$(BUILD_ROOT)/libavformat -Wl,-rpath-link,\$(BUILD_ROOT)/libavcodec -Wl,-rpath-link,\$(BUILD_ROOT)/libavutil'
test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic