summaryrefslogtreecommitdiff
path: root/libpthread/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/Makefile')
-rw-r--r--libpthread/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpthread/Makefile b/libpthread/Makefile
index f844ee82a..fa6e0e371 100644
--- a/libpthread/Makefile
+++ b/libpthread/Makefile
@@ -48,8 +48,9 @@ $(OBJS): %.o : %.c
$(OBJ): Makefile
shared: all
- $(TARGET_CC) $(TARGET_LDFLAGS) -nostdlib -shared -o $(LIBPTHREAD_SHARED_FULLNAME) \
- -Wl,-soname,$(LIBPTHREAD_SHARED).$(MAJOR_VERSION) -Wl,--whole-archive $(LIBPTHREAD) -lc
+ $(LD) $(LDFLAGS) -o $(LIBPTHREAD_SHARED_FULLNAME) \
+ -soname=$(LIBPTHREAD_SHARED).$(MAJOR_VERSION) \
+ --whole-archive $(LIBPTHREAD);
install -d $(TOPDIR)lib
rm -f $(TOPDIR)lib/$(LIBPTHREAD_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBPTHREAD_SHARED).$(MAJOR_VERSION)
install -m 644 $(LIBPTHREAD_SHARED_FULLNAME) $(TOPDIR)lib;