[PATCH] remove -mcpu=powerpc from cflags on powerpc

Sebastian Andrzej Siewior bigeasy at linutronix.de
Wed Jun 16 16:34:49 UTC 2010


-mcpu=powerpc assumes certain powerpc and will create wrong code if the
default cpu is not compatible with with -mcpu=powerpc. This is the case
on softfloat toolchains for instance.

This patch removes the -mcpu= state from cflags and the default cpu will
be used.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
---
 builds/posix/prefix.linux_powerpc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builds/posix/prefix.linux_powerpc b/builds/posix/prefix.linux_powerpc
index 7ae4487..a91897a 100644
--- a/builds/posix/prefix.linux_powerpc
+++ b/builds/posix/prefix.linux_powerpc
@@ -18,7 +18,7 @@
 #
 # 2 Oct 2002, Nickolay Samofatov - Major cleanup
 
-PROD_FLAGS=-ggdb -fno-omit-frame-pointer -fsigned-char -DNDEBUG -DLINUX -pipe -MMD -fPIC -fmessage-length=0 -DLINUX -DPowerPC -DPPC -O3 -mcpu=powerpc
+PROD_FLAGS=-ggdb -fno-omit-frame-pointer -fsigned-char -DNDEBUG -DLINUX -pipe -MMD -fPIC -fmessage-length=0 -DLINUX -DPowerPC -DPPC -O3
 DEV_FLAGS=-ggdb -O0 -DLINUX -pipe -MMD -p -fPIC -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -fmessage-length=0 -fsigned-char -DLINUX -DPowerPC -DPPC
 #DEV_FLAGS=-DUSE_VALGRIND -ggdb -O0 -DLINUX -pipe -MMD -p -fPIC -Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -fmessage-length=0 -DLINUX -DPowerPC -DPPC
 
-- 
1.5.6.5


--3lcZGd9BuhuYXNfi--





More information about the pkg-firebird-general mailing list