svn commit: trunk/uClibc/ldso: ldso libdl

sjhill at uclibc.org sjhill at uclibc.org
Sat Oct 1 17:06:34 UTC 2005


Author: sjhill
Date: 2005-10-01 10:06:33 -0700 (Sat, 01 Oct 2005)
New Revision: 11722

Log:
Clean up debugging levels for MIPS. This should make things consistent now.


Modified:
   trunk/uClibc/ldso/ldso/Makefile
   trunk/uClibc/ldso/libdl/Makefile


Changeset:
Modified: trunk/uClibc/ldso/ldso/Makefile
===================================================================
--- trunk/uClibc/ldso/ldso/Makefile	2005-10-01 16:24:20 UTC (rev 11721)
+++ trunk/uClibc/ldso/ldso/Makefile	2005-10-01 17:06:33 UTC (rev 11722)
@@ -33,8 +33,6 @@
 	-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 @@
 #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)

Modified: trunk/uClibc/ldso/libdl/Makefile
===================================================================
--- trunk/uClibc/ldso/libdl/Makefile	2005-10-01 16:24:20 UTC (rev 11721)
+++ trunk/uClibc/ldso/libdl/Makefile	2005-10-01 17:06:33 UTC (rev 11722)
@@ -40,6 +40,11 @@
     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




More information about the uClibc-cvs mailing list