|
|
@ -1016,22 +1016,25 @@ if test $targetos = Darwin; then |
|
|
|
gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`" |
|
|
|
gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`" |
|
|
|
case "$gcc_version" in |
|
|
|
case "$gcc_version" in |
|
|
|
*2.95*) |
|
|
|
*2.95*) |
|
|
|
CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer" |
|
|
|
CFLAGS="$CFLAGS -no-cpp-precomp -pipe" |
|
|
|
;; |
|
|
|
;; |
|
|
|
*[34].*) |
|
|
|
*[34].*) |
|
|
|
CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer -force_cpusubtype_ALL -Wno-sign-compare" |
|
|
|
CFLAGS="$CFLAGS -no-cpp-precomp -pipe -force_cpusubtype_ALL -Wno-sign-compare" |
|
|
|
if test "$lshared" = no; then |
|
|
|
if test "$lshared" = no; then |
|
|
|
needmdynamicnopic="yes" |
|
|
|
needmdynamicnopic="yes" |
|
|
|
fi |
|
|
|
fi |
|
|
|
;; |
|
|
|
;; |
|
|
|
*) |
|
|
|
*) |
|
|
|
CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer" |
|
|
|
CFLAGS="$CFLAGS -no-cpp-precomp -pipe" |
|
|
|
if test "$lshared" = no; then |
|
|
|
if test "$lshared" = no; then |
|
|
|
needmdynamicnopic="yes" |
|
|
|
needmdynamicnopic="yes" |
|
|
|
fi |
|
|
|
fi |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
if test $optimize != "no"; then |
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -fomit-frame-pointer" |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Can only do AltiVec on PowerPC |
|
|
|
# Can only do AltiVec on PowerPC |
|
|
|