diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-06-15 19:47:58 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-06-15 19:47:58 +0000 |
commit | ec4e85f8a3471efaf67032d8b7cedc13d40b1446 (patch) | |
tree | f7a341d1870ecc5f3e3487a37fb55d9efe177c9a /libutil | |
parent | c1ae0ad8262ce40178a54a393bcf466b57ad5819 (diff) |
Be consistant for all the client code, and use TARGET_CC with --uclibc-use-build-dir
Diffstat (limited to 'libutil')
-rw-r--r-- | libutil/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libutil/Makefile b/libutil/Makefile index 6c12869e7..c1ac9022b 100644 --- a/libutil/Makefile +++ b/libutil/Makefile @@ -27,7 +27,6 @@ LIBC=$(TOPDIR)libc.a LIBUTIL=libutil.a LIBUTIL_SHARED=libutil.so LIBUTIL_SHARED_FULLNAME=libutil-$(MAJOR_VERSION).$(MINOR_VERSION).so -TARGET_CC= $(TOPDIR)extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc CSRC=forkpty.c login.c login_tty.c logout.c logwtmp.c openpty.c OBJS=$(patsubst %.c,%.o, $(CSRC)) @@ -43,13 +42,12 @@ ar-target: $(OBJS) install -m 644 $(LIBUTIL) $(TOPDIR)lib/ $(OBJS): %.o : %.c - $(TARGET_CC) $(CFLAGS) -c $< -o $@ + $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o shared: all - $(TARGET_CC) $(LDFLAGS) -shared -o $(LIBUTIL_SHARED_FULLNAME) \ - -Wl,-soname,$(LIBUTIL_SHARED).$(MAJOR_VERSION) -Wl,--whole-archive \ - $(LIBUTIL) $(TOPDIR)lib/$(SHARED_FULLNAME) + $(TARGET_CC) $(TARGET_LDFLAGS) -nostdlib -shared -o $(LIBUTIL_SHARED_FULLNAME) \ + -Wl,-soname,$(LIBUTIL_SHARED).$(MAJOR_VERSION) -Wl,--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/; |