diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-25 01:08:42 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-25 01:08:42 +0000 |
commit | cf5e4b82c18863a2b5a76648eed1dd18a8e10947 (patch) | |
tree | 0384ced0260638ad512a83bffae4e8495320a381 | |
parent | cd1e4095bdf95269a70ded0c94cab7ed54bdfb9b (diff) |
Build libc if in a subdir and we have it as a dependency
-rw-r--r-- | Makerules | 3 | ||||
-rw-r--r-- | Rules.mak | 4 | ||||
-rw-r--r-- | libc/Makefile.in | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -141,6 +141,9 @@ $(interp): $(top_builddir)lib/interp.c $(ldso): cd $(top_builddir); $(MAKE) lib/$(patsubst %.$(MAJOR_VERSION),%,$(notdir $@)) +$(libc): + cd $(top_builddir); $(MAKE) lib/$(patsubst %.$(MAJOR_VERSION),%,$(notdir $@)) + #ifeq ($(HAVE_ELF),y) CRT=crt1 #else @@ -60,12 +60,12 @@ LIBC := libc SHARED_MAJORNAME := $(LIBC).so.$(MAJOR_VERSION) UCLIBC_LDSO := ld-uClibc.so.$(MAJOR_VERSION) NONSHARED_LIBNAME := uclibc_nonshared.a -libc := $(top_builddir)lib/$(LIBC).so +libc := $(top_builddir)lib/$(SHARED_MAJORNAME) interp := $(top_builddir)lib/interp.os ldso := $(top_builddir)lib/$(UCLIBC_LDSO) #LIBS :=$(interp) -L$(top_builddir)lib -lc -LIBS := $(interp) -L$(top_builddir)lib $(libc) +LIBS := $(interp) -L$(top_builddir)lib $(libc:.$(MAJOR_VERSION)=) # Make sure DESTDIR and PREFIX can be used to install # PREFIX is a uClibcism while DESTDIR is a common GNUism diff --git a/libc/Makefile.in b/libc/Makefile.in index ae506f8dc..b03132256 100644 --- a/libc/Makefile.in +++ b/libc/Makefile.in @@ -49,7 +49,7 @@ lib-a-y += $(top_builddir)lib/libc.a lib-so-y += $(libc) objclean-y += libc_clean -$(libc): $(libc_OUT)/libc_so.a $(LIBS-libc.so) +$(libc:.$(MAJOR_VERSION)=): $(libc_OUT)/libc_so.a $(LIBS-libc.so) $(call link.so,$(libc_FULL_NAME),$(MAJOR_VERSION)) $(Q)$(RM) $@ $(Q)echo "/* GNU ld script" > $@ |