diff options
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/Makefile | 7 | ||||
-rw-r--r-- | ldso/libdl/Makefile | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile index f08c64c2f..2d7d867f9 100644 --- a/ldso/ldso/Makefile +++ b/ldso/ldso/Makefile @@ -33,8 +33,6 @@ XXFLAGS+= -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" $(XARCH_CFLAGS) $(CPU_CFLAGS) $(PICFL -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \ -fno-builtin -nostdinc -D_LIBC -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include -# BEWARE!!! At least mips* will die if -O0 is used!!! -XXFLAGS:=$(XXFLAGS:-O0=-O1) XXFLAGS+=-isystem $(shell $(CC) -print-file-name=include) ifeq ($(strip $(SUPPORT_LD_DEBUG)),y) @@ -48,6 +46,11 @@ endif #This stuff will not work with -fomit-frame-pointer XXFLAGS := $(XXFLAGS:-fomit-frame-pointer=) +# BEWARE!!! At least mips* will die if -O0 is used!!! +ifeq ($(strip $(TARGET_ARCH)),mips) +XXFLAGS := $(XXFLAGS:-O0=-O1) +endif + ASFLAGS=$(XXFLAGS) ifeq ($(UCLIBC_BUILD_NOEXECSTACK),y) ASFLAGS+=$(call check_as,--noexecstack) diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile index a5b2f6be2..8101b08e3 100644 --- a/ldso/libdl/Makefile +++ b/ldso/libdl/Makefile @@ -40,6 +40,11 @@ ifeq ($(DOPIC),y) XXFLAGS += $(PICFLAG) -D__LIBDL_SHARED__ endif +# BEWARE!!! At least mips* will die if -O0 is used!!! +ifeq ($(strip $(TARGET_ARCH)),mips) +XXFLAGS := $(XXFLAGS:-O0=-O1) +endif + LIB_NAME=libdl AR_LIB_NAME=$(TOPDIR)lib/$(LIB_NAME).a SO_LIB_NAME=$(TOPDIR)lib/$(LIB_NAME).so |