summaryrefslogtreecommitdiff
path: root/libresolv
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-15 19:47:58 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-15 19:47:58 +0000
commitec4e85f8a3471efaf67032d8b7cedc13d40b1446 (patch)
treef7a341d1870ecc5f3e3487a37fb55d9efe177c9a /libresolv
parentc1ae0ad8262ce40178a54a393bcf466b57ad5819 (diff)
Be consistant for all the client code, and use TARGET_CC with --uclibc-use-build-dir
Diffstat (limited to 'libresolv')
-rw-r--r--libresolv/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/libresolv/Makefile b/libresolv/Makefile
index 75c62c745..219c31d77 100644
--- a/libresolv/Makefile
+++ b/libresolv/Makefile
@@ -26,7 +26,6 @@ include $(TOPDIR)Rules.mak
LIBRESOLV=libresolv.a
LIBRESOLV_SHARED=libresolv.so
LIBRESOLV_SHARED_FULLNAME=libresolv-$(MAJOR_VERSION).$(MINOR_VERSION).so
-TARGET_CC= $(TOPDIR)extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc
CSRC = resolv.c
OBJS=$(patsubst %.c,%.o, $(CSRC))
@@ -42,15 +41,14 @@ ar-target: $(OBJS)
install -m 644 $(LIBRESOLV) $(TOPDIR)lib
$(OBJS): %.o : %.c
- $(TARGET_CC) $(CFLAGS) -c $< -o $@
+ $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(OBJ): Makefile
shared: all
- $(TARGET_CC) $(LDFLAGS) -shared -o $(LIBRESOLV_SHARED_FULLNAME) \
- -Wl,-soname,$(LIBRESOLV_SHARED).$(MAJOR_VERSION) -Wl,--whole-archive \
- $(LIBRESOLV) $(TOPDIR)lib/$(SHARED_FULLNAME)
+ $(TARGET_CC) $(TARGET_LDFLAGS) -nostdlib -shared -o $(LIBRESOLV_SHARED_FULLNAME) \
+ -Wl,-soname,$(LIBRESOLV_SHARED).$(MAJOR_VERSION) -Wl,--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;