diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-11-11 23:40:10 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-11-11 23:40:10 +0000 |
commit | 84600e24ce4663a14abe4e57d157f8f71e683b8c (patch) | |
tree | d40fc4d29b0a8ab32783746ad8e76e9dc375f801 | |
parent | 0e1f40d1dbb23993241548d47420872ba434d4f6 (diff) |
It seems that the powerpc ldso doesn't like -O0
-rw-r--r-- | ldso/ldso/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile index b9718f4da..7cd1b9999 100644 --- a/ldso/ldso/Makefile +++ b/ldso/ldso/Makefile @@ -32,11 +32,17 @@ XXFLAGS=$(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS) $(CPU_CFLAGS) $(PICFLAG) \ -fno-builtin -nostdinc -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include ifeq ($(DODEBUG),y) -XXFLAGS=$(XWARNINGS) -O0 -g3 $(XARCH_CFLAGS) $(CPU_CFLAGS) $(PICFLAG) \ +XXFLAGS=$(XWARNINGS) $(XARCH_CFLAGS) $(CPU_CFLAGS) $(PICFLAG) \ -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \ -fno-builtin -nostdinc -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include endif +ifeq ($(TARGET_ARCH),powerpc) +XXFLAGS+=-Os -g3 +else +XXFLAGS+=-O0 -g3 +endif + XXFLAGS+=$(shell $(CC) -print-search-dirs | sed -ne "s/install: *\(.*\)/-I\1include/gp") LDFLAGS=$(CPU_LDFLAGS-y) -shared --warn-common --export-dynamic --sort-common \ -z combreloc --discard-locals --discard-all |