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
... | ... |
@@ -626,13 +626,18 @@ int x; |
626 | 626 |
EOF |
627 | 627 |
} |
628 | 628 |
|
629 |
-check_ldflags(){ |
|
630 |
- log check_ldflags "$@" |
|
631 |
- check_ld "$@" <<EOF && add_ldflags "$@" |
|
629 |
+test_ldflags(){ |
|
630 |
+ log test_ldflags "$@" |
|
631 |
+ check_ld "$@" <<EOF |
|
632 | 632 |
int main(void){ return 0; } |
633 | 633 |
EOF |
634 | 634 |
} |
635 | 635 |
|
636 |
+check_ldflags(){ |
|
637 |
+ log check_ldflags "$@" |
|
638 |
+ test_ldflags "$@" && add_ldflags "$@" |
|
639 |
+} |
|
640 |
+ |
|
636 | 641 |
check_header(){ |
637 | 642 |
log check_header "$@" |
638 | 643 |
header=$1 |