From 992583311b743f16d04e2139f45d918c75aff532 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 27 Oct 2010 00:19:02 +0200 Subject: [PATCH] configure: don't use -fPIE and --param ssp-buffer-size if CC != gcc. --- configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a1eafe29..eb731d8f 100755 --- a/configure +++ b/configure @@ -251,7 +251,9 @@ if [ $? -ne 0 ]; then check_compiler_flag stack-protector f fi if [ $? -eq 0 ]; then - check_compiler_flag "param ssp-buffer-size=1" - + if [ "$CC" = "gcc" ]; then + check_compiler_flag "param ssp-buffer-size=1" - + fi fi if [ $? -eq 0 ]; then echo "CPPFLAGS += -D_FORTIFY_SOURCE=2" >>$CONFIG_MK @@ -265,7 +267,7 @@ check_compiler_flag "std=c99" if [ -n "$BUILD_PIE" ]; then BUILD_PIE_VAL=yes 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 fi