summaryrefslogtreecommitdiff
path: root/libutil/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libutil/Makefile')
-rw-r--r--libutil/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/libutil/Makefile b/libutil/Makefile
index 705f89fa1..f86f7c8f5 100644
--- a/libutil/Makefile
+++ b/libutil/Makefile
@@ -50,8 +50,9 @@ $(OBJS): %.o : %.c
$(STRIPTOOL) -x -R .note -R .comment $*.o
shared: all
- $(TARGET_CC) $(TARGET_LDFLAGS) -nostdlib -shared -o $(LIBUTIL_SHARED_FULLNAME) \
- -Wl,-soname,$(LIBUTIL_SHARED).$(MAJOR_VERSION) -Wl,--whole-archive $(LIBUTIL) -lc
+ $(LD) $(LDFLAGS) -o $(LIBUTIL_SHARED_FULLNAME) \
+ -soname=$(LIBUTIL_SHARED).$(MAJOR_VERSION) \
+ --whole-archive $(LIBUTIL);
install -d $(TOPDIR)lib
rm -f $(TOPDIR)lib/$(LIBUTIL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBUTIL_SHARED).$(MAJOR_VERSION)
install -m 644 $(LIBUTIL_SHARED_FULLNAME) $(TOPDIR)lib/;