else
CFLAGS += $(OPTIMIZATION) $(XARCH_CFLAGS)
endif
-ifeq ($(NOSTRIP),y)
-STRIPTOOL := true -Stripping_disabled
-else
+ifeq ($(DOSTRIP),y)
LDFLAGS += -s
+else
+STRIPTOOL := true -Stripping_disabled
endif
ifeq ($(DOMULTI),y)
config DODEBUG
bool "Build uClibc with debugging symbols"
default n
- select NOSTRIP
select EXTRA_WARNINGS
help
Say Y here if you wish to compile uClibc with debugging symbols.
Otherwise, answer N.
-config NOSTRIP
- bool "Do not strip libraries and executables"
- default n
+config DOSTRIP
+ bool "Strip libraries and executables"
+ default y
+ depends on !DODEBUG
help
- Say Y here if you do not wish to strip all uClibc libraries and
- executables. This increases the size of the binaries considerably,
- but makes it possible to directly debug uClibc libraries.
- Most people will answer N.
+ Say Y here if you do wish to strip all uClibc libraries and
+ executables. No stripping increases the size of the binaries
+ considerably, but makes it possible to debug uClibc libraries.
+ Most people will answer Y.
config DOASSERTS
bool "Build uClibc with run-time assertion testing"
CFLAGS-linuxthreads.old_db := -DNOT_IN_libc -DLIBPTHREAD_SO="\"libpthread.so.$(MAJOR_VERSION)\""
LDFLAGS-libthread_db.so := $(LDFLAGS_NOSTRIP) $(call check_ld,--warn-unresolved-symbols)
-ifneq ($(NOSTRIP),y)
+ifeq ($(DOSTRIP),y)
LDFLAGS-libthread_db.so += -s
endif
CFLAGS-linuxthreads_db := -DNOT_IN_libc -DLIBPTHREAD_SO="\"libpthread.so.$(MAJOR_VERSION)\""
LDFLAGS-libthread_db.so := $(LDFLAGS_NOSTRIP) $(call check_ld,--warn-unresolved-symbols)
-ifneq ($(NOSTRIP),y)
+ifeq ($(DOSTRIP),y)
LDFLAGS-libthread_db.so += -s
endif