fix CXXFLAGS
This commit is contained in:
parent
31aed3db43
commit
0ccba96834
12
configure
vendored
12
configure
vendored
@ -4936,11 +4936,11 @@ if test "$GCC" = "yes"
|
|||||||
then
|
then
|
||||||
if test "$debugyap" = "yes"
|
if test "$debugyap" = "yes"
|
||||||
then
|
then
|
||||||
CXXFLAGS="-O -g -Wall $CFLAGS"
|
CXXFLAGS="-O -g -Wall $CXXFLAGS"
|
||||||
C_INTERF_FLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
C_INTERF_FLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
||||||
CFLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
CFLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
||||||
else
|
else
|
||||||
CXXFLAGS="-O3 -fomit-frame-pointer -Wall $CFLAGS"
|
CXXFLAGS="-O3 -fomit-frame-pointer -Wall $CXXFLAGS"
|
||||||
C_INTERF_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
C_INTERF_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
||||||
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
||||||
CFLAGS="-O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
CFLAGS="-O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
||||||
@ -4955,7 +4955,7 @@ then
|
|||||||
sparc*)
|
sparc*)
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
*solaris2-9*) CFLAGS="-mno-app-regs -DOPTIMISE_ALL_REGS_FOR_SPARC=1 $CFLAGS"
|
*solaris2-9*) CFLAGS="-mno-app-regs -DOPTIMISE_ALL_REGS_FOR_SPARC=1 $CFLAGS"
|
||||||
CXXFLAGS="-mno-app-regs -DOPTIMISE_ALL_REGS_FOR_SPARC=1 $CFPPLAGS"
|
CXXFLAGS="-mno-app-regs -DOPTIMISE_ALL_REGS_FOR_SPARC=1 $CXXFLAGS"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
@ -5004,7 +5004,7 @@ else
|
|||||||
CFLAGS="-A -A $CFLAGS"
|
CFLAGS="-A -A $CFLAGS"
|
||||||
elif test "$CC" = "cl"
|
elif test "$CC" = "cl"
|
||||||
then
|
then
|
||||||
CXXFLAGS="-/nologo $CFLAGS"
|
CXXFLAGS="-/nologo $CXXFLAGS"
|
||||||
CFLAGS="/nologo $CFLAGS"
|
CFLAGS="/nologo $CFLAGS"
|
||||||
CPP="/nologo /E"
|
CPP="/nologo /E"
|
||||||
fi
|
fi
|
||||||
@ -5014,10 +5014,10 @@ else
|
|||||||
then
|
then
|
||||||
if test "$debugyap" = "yes"
|
if test "$debugyap" = "yes"
|
||||||
then
|
then
|
||||||
CXXFLAGS="-Ae -g -O $CFLAGS"
|
CXXFLAGS="-Ae -g -O $CXXFLAGS"
|
||||||
CFLAGS="-Ae -g -O $CFLAGS"
|
CFLAGS="-Ae -g -O $CFLAGS"
|
||||||
else
|
else
|
||||||
CXXFLAGS="-Ae +O3 +Onolimit $CFLAGS"
|
CXXFLAGS="-Ae +O3 +Onolimit $CXXFLAGS"
|
||||||
CFLAGS="-Ae +O3 +Onolimit $CFLAGS"
|
CFLAGS="-Ae +O3 +Onolimit $CFLAGS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
12
configure.in
12
configure.in
@ -500,11 +500,11 @@ if test "$GCC" = "yes"
|
|||||||
then
|
then
|
||||||
if test "$debugyap" = "yes"
|
if test "$debugyap" = "yes"
|
||||||
then
|
then
|
||||||
CXXFLAGS="-O -g -Wall $CFLAGS"
|
CXXFLAGS="-O -g -Wall $CXXFLAGS"
|
||||||
C_INTERF_FLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
C_INTERF_FLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
||||||
CFLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
CFLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
||||||
else
|
else
|
||||||
CXXFLAGS="-O3 -fomit-frame-pointer -Wall $CFLAGS"
|
CXXFLAGS="-O3 -fomit-frame-pointer -Wall $CXXFLAGS"
|
||||||
C_INTERF_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
C_INTERF_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
||||||
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
||||||
CFLAGS="-O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
CFLAGS="-O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes $CFLAGS"
|
||||||
@ -520,7 +520,7 @@ then
|
|||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
*solaris[2-9]*) dnl
|
*solaris[2-9]*) dnl
|
||||||
CFLAGS="-mno-app-regs -DOPTIMISE_ALL_REGS_FOR_SPARC=1 $CFLAGS"
|
CFLAGS="-mno-app-regs -DOPTIMISE_ALL_REGS_FOR_SPARC=1 $CFLAGS"
|
||||||
CXXFLAGS="-mno-app-regs -DOPTIMISE_ALL_REGS_FOR_SPARC=1 $CFPPLAGS"
|
CXXFLAGS="-mno-app-regs -DOPTIMISE_ALL_REGS_FOR_SPARC=1 $CXXFLAGS"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
@ -569,7 +569,7 @@ else
|
|||||||
CFLAGS="-A -A $CFLAGS"
|
CFLAGS="-A -A $CFLAGS"
|
||||||
elif test "$CC" = "cl"
|
elif test "$CC" = "cl"
|
||||||
then
|
then
|
||||||
CXXFLAGS="-/nologo $CFLAGS"
|
CXXFLAGS="-/nologo $CXXFLAGS"
|
||||||
CFLAGS="/nologo $CFLAGS"
|
CFLAGS="/nologo $CFLAGS"
|
||||||
CPP="/nologo /E"
|
CPP="/nologo /E"
|
||||||
fi
|
fi
|
||||||
@ -579,10 +579,10 @@ else
|
|||||||
then
|
then
|
||||||
if test "$debugyap" = "yes"
|
if test "$debugyap" = "yes"
|
||||||
then
|
then
|
||||||
CXXFLAGS="-Ae -g -O $CFLAGS"
|
CXXFLAGS="-Ae -g -O $CXXFLAGS"
|
||||||
CFLAGS="-Ae -g -O $CFLAGS"
|
CFLAGS="-Ae -g -O $CFLAGS"
|
||||||
else
|
else
|
||||||
CXXFLAGS="-Ae +O3 +Onolimit $CFLAGS"
|
CXXFLAGS="-Ae +O3 +Onolimit $CXXFLAGS"
|
||||||
CFLAGS="-Ae +O3 +Onolimit $CFLAGS"
|
CFLAGS="-Ae +O3 +Onolimit $CFLAGS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user