From 2ed46eeab33d30cdfb5adf97dd7266931acde0ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com> Date: Sat, 16 Jan 2010 04:48:58 +0000 Subject: [PATCH] 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 --- configure | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 915557976c1..c9cf2d1839f 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 -- GitLab