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