Browse Source

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.

David McCullough 21 years ago
parent
commit
6149f74892
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libc/sysdeps/linux/common/Makefile

+ 5 - 0
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