diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-12-08 22:31:50 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-12-08 22:31:50 +0000 |
commit | e156b0234a69b231a20ec70af0c352b12c71f9cd (patch) | |
tree | 48aa92b06d5c2a01727c1425fd4b07ce1271a776 /libpthread | |
parent | f463aa5cf8afc66168acfed95605d493fa6f7291 (diff) |
libpthread can use the normal LDFLAGS (including -s to strip it), but
libthreaddb must not be stripped or gdb can't use it.
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libpthread/Makefile b/libpthread/Makefile index b3b93970d..e07d0be8c 100644 --- a/libpthread/Makefile +++ b/libpthread/Makefile @@ -31,10 +31,9 @@ LIBTHREAD_DB_SHARED_FULLNAME=libthread_db-$(MAJOR_VERSION).$(MINOR_VERSION).$(SU DIRS= ifeq ($(strip $(UCLIBC_HAS_THREADS)),y) DIRS+=linuxthreads - LDFLAGS_PTHREADS:= $(LDFLAGS) ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y) DIRS+=linuxthreads_db - LDFLAGS_PTHREADS:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc + LDFLAGS_THREAD_DB:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc endif endif @@ -73,7 +72,7 @@ $(OBJ): Makefile shared: all if [ -f $(LIBPTHREAD) ] ; then \ set -e; \ - $(LD) $(LDFLAGS_PTHREADS) -soname=$(LIBPTHREAD_SHARED).$(MAJOR_VERSION) \ + $(LD) $(LDFLAGS) -soname=$(LIBPTHREAD_SHARED).$(MAJOR_VERSION) \ -o $(LIBPTHREAD_SHARED_FULLNAME) $(SHARED_START_FILES) --whole-archive $(LIBPTHREAD) \ --no-whole-archive $(TOPDIR)libc/misc/internals/interp.o \ -L$(TOPDIR)lib -lc $(LDADD_LIBFLOAT) $(LIBGCC) \ @@ -89,7 +88,7 @@ shared: all fi; if [ -f $(LIBTHREAD_DB) ] ; then \ set -e; \ - $(LD) $(LDFLAGS) -soname=$(LIBTHREAD_DB_SHARED).1 \ + $(LD) $(LDFLAGS_THREAD_DB) -soname=$(LIBTHREAD_DB_SHARED).1 \ -o $(LIBTHREAD_DB_SHARED_FULLNAME) --whole-archive $(LIBTHREAD_DB) \ --no-whole-archive $(TOPDIR)libc/misc/internals/interp.o \ -L$(TOPDIR)lib -lc $(LDADD_LIBFLOAT) $(LIBGCC) \ |