This prevents the default flags from getting clobbered by flags
passed to configure on the command line.
---
This fixes linking doc/print_options on the suncc/linux FATE stations.
Now -O3 overrides any other optimization flag passed via --host-cflags
to configure, as -O3 will get added to HOSTCFLAGS last. That's slightly
suboptimal, but a really clean solution is rather involved and probably
overkill.
One would need to handle optimization flags for the host compiler similar
to what is done for the target compiler in configure lines 4108ff. For the
host compiler optimizing for speed and size makes little sense, so I don't
expect the flag override to ever actually cause any problems in practice.
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 945a012..98ac566 100755
--- a/configure
+++ b/configure
@@ -2125,8 +2125,6 @@ HOSTCC_E='-E -o $@'
HOSTCC_O='-o $@'
HOSTLD_O='-o $@'
-host_cflags='-O3'
-host_cppflags='-D_ISOC99_SOURCE'
host_libs='-lm'
host_cflags_filter=echo
host_ldflags_filter=echo
@@ -3167,8 +3165,10 @@ check_cc -D_LARGEFILE_SOURCE <<EOF && add_cppflags
-D_LARGEFILE_SOURCE
#include <stdlib.h>
EOF
+add_host_cppflags -D_ISOC99_SOURCE
check_host_cflags -std=c99
check_host_cflags -Wall
+check_host_cflags -O3
check_64bit(){
arch32=$1
--
1.8.3.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel