configure: don't use -fPIE and --param ssp-buffer-size if CC != gcc.

This commit is contained in:
Juan RP 2010-10-27 00:19:02 +02:00
parent c49bd80e20
commit 992583311b

4
configure vendored
View File

@ -251,8 +251,10 @@ if [ $? -ne 0 ]; then
check_compiler_flag stack-protector f check_compiler_flag stack-protector f
fi fi
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
if [ "$CC" = "gcc" ]; then
check_compiler_flag "param ssp-buffer-size=1" - check_compiler_flag "param ssp-buffer-size=1" -
fi fi
fi
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "CPPFLAGS += -D_FORTIFY_SOURCE=2" >>$CONFIG_MK echo "CPPFLAGS += -D_FORTIFY_SOURCE=2" >>$CONFIG_MK
fi fi
@ -265,7 +267,7 @@ check_compiler_flag "std=c99"
if [ -n "$BUILD_PIE" ]; then if [ -n "$BUILD_PIE" ]; then
BUILD_PIE_VAL=yes BUILD_PIE_VAL=yes
echo "Building programs as PIE (Position Independent Executable)." echo "Building programs as PIE (Position Independent Executable)."
check_compiler_flag PIE f PROG_CFLAGS [ "$CC" = "gcc" ] && check_compiler_flag PIE f PROG_CFLAGS
check_compiler_flag pie "" PROG_LDFLAGS check_compiler_flag pie "" PROG_LDFLAGS
fi fi