mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 11:22:14 +00:00
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
This commit is contained in:
parent
e8393e1cb8
commit
2ed46eeab3
11
configure
vendored
11
configure
vendored
@ -626,13 +626,18 @@ int x;
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
check_ldflags(){
|
test_ldflags(){
|
||||||
log check_ldflags "$@"
|
log test_ldflags "$@"
|
||||||
check_ld "$@" <<EOF && add_ldflags "$@"
|
check_ld "$@" <<EOF
|
||||||
int main(void){ return 0; }
|
int main(void){ return 0; }
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_ldflags(){
|
||||||
|
log check_ldflags "$@"
|
||||||
|
test_ldflags "$@" && add_ldflags "$@"
|
||||||
|
}
|
||||||
|
|
||||||
check_header(){
|
check_header(){
|
||||||
log check_header "$@"
|
log check_header "$@"
|
||||||
header=$1
|
header=$1
|
||||||
|
Loading…
Reference in New Issue
Block a user