summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2003-02-17 12:55:57 +0000
committerDavid McCullough <davidm@snapgear.com>2003-02-17 12:55:57 +0000
commit6149f74892945c45c6907af3781dde55b9db0f87 (patch)
treed469c05a5d86e1aabf5825497dc193ae3d06f140 /libc
parenteacb6bcea7196699d2b9dfe29a07d237059360ac (diff)
Using -g when doing the initfini compilation breaks the SH4 case pretty
badly. I have removed -g for all platforms as I suspect no one wants it for the initfini creation process.
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile
index 2a4a392a1..c616ad8b2 100644
--- a/libc/sysdeps/linux/common/Makefile
+++ b/libc/sysdeps/linux/common/Makefile
@@ -36,6 +36,11 @@ MOBJ=$(shell ./list_syscalls.sh)
CTOR_TARGETS=$(TOPDIR)lib/crti.o $(TOPDIR)lib/crtn.o
SAFECFLAGS=$(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS) $(CPU_CFLAGS) -fno-builtin
+#
+# on SH4 addition of -g kills the initfini stuff, removed here for all
+# platforms as I suspect no one want initfini compiled -g :-) - davidm
+#
+SAFECFLAGS := $(subst -g,,$(SAFECFLAGS))
ifeq ($(strip $(DOPIC)),y)
SAFECFLAGS+=-fPIC
endif