summaryrefslogtreecommitdiff
path: root/libpthread/Makefile
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2004-01-16 18:52:54 +0000
committerManuel Novoa III <mjn3@codepoet.org>2004-01-16 18:52:54 +0000
commitd8c8b456f45c773d0adac99f2997cbb0cab4c911 (patch)
treef4112b6f99e0b264701feba735e79a20bd6990c9 /libpthread/Makefile
parent338237994ac93ca58f6024ef0f7932ab770735d1 (diff)
We need to link with libgcc.a when creating shared libs, in order to
avoid problems 'hidden symbol' problems. Also handle -lfloat for the soft-float arm case.
Diffstat (limited to 'libpthread/Makefile')
-rw-r--r--libpthread/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpthread/Makefile b/libpthread/Makefile
index 189cdffc2..ef68cfa69 100644
--- a/libpthread/Makefile
+++ b/libpthread/Makefile
@@ -81,7 +81,8 @@ shared: all
$(LD) $(LDFLAGS_PTHREADS) -soname=$(LIBPTHREAD_SHARED).$(MAJOR_VERSION) \
-o $(LIBPTHREAD_SHARED_FULLNAME) $(START_FILES) --whole-archive $(LIBPTHREAD) \
--no-whole-archive $(TOPDIR)libc/misc/internals/interp.o \
- -L$(TOPDIR)lib -lc $(END_FILES); \
+ -L$(TOPDIR)lib -lc $(LDADD_LIBFLOAT) $(LIBGCC) \
+ $(END_FILES); \
$(INSTALL) -d $(TOPDIR)lib; \
$(RM) $(TOPDIR)lib/$(LIBPTHREAD_SHARED_FULLNAME) \
$(TOPDIR)lib/$(LIBPTHREAD_SHARED).$(MAJOR_VERSION); \
@@ -96,7 +97,8 @@ shared: all
$(LD) $(LDFLAGS) -soname=$(LIBTHREAD_DB_SHARED).1 \
-o $(LIBTHREAD_DB_SHARED_FULLNAME) $(START_FILES) --whole-archive $(LIBTHREAD_DB) \
--no-whole-archive $(TOPDIR)libc/misc/internals/interp.o \
- -L$(TOPDIR)lib -lc $(END_FILES); \
+ -L$(TOPDIR)lib -lc $(LDADD_LIBFLOAT) $(LIBGCC) \
+ $(END_FILES); \
$(INSTALL) -d $(TOPDIR)lib; \
$(RM) $(TOPDIR)lib/$(LIBTHREAD_DB_SHARED_FULLNAME) \
$(TOPDIR)lib/$(LIBTHREAD_DB_SHARED).$(MAJOR_VERSION); \