aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-01-16 04:48:58 +0000
committerMåns Rullgård <mans@mansr.com>2010-01-16 04:48:58 +0000
commit2ed46eeab33d30cdfb5adf97dd7266931acde0ed (patch)
tree68a20227196d2e3ea01d59d97e389b7f41dd5bed /configure
parente8393e1cb82ef1c81363862d32202d28ff20cf29 (diff)
downloadffmpeg-2ed46eeab33d30cdfb5adf97dd7266931acde0ed.tar.gz
configure: add test_ldflags function
This adds a test_ldflags function for testing linker flags without adding them to LDFLAGS like check_ldflags does. Originally committed as revision 21235 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure b/configure
index 915557976c..c9cf2d1839 100755
--- a/configure
+++ b/configure
@@ -626,13 +626,18 @@ int x;
EOF
}
-check_ldflags(){
- log check_ldflags "$@"
- check_ld "$@" <<EOF && add_ldflags "$@"
+test_ldflags(){
+ log test_ldflags "$@"
+ check_ld "$@" <<EOF
int main(void){ return 0; }
EOF
}
+check_ldflags(){
+ log check_ldflags "$@"
+ test_ldflags "$@" && add_ldflags "$@"
+}
+
check_header(){
log check_header "$@"
header=$1