diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-05-04 22:29:43 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-05-04 22:29:43 +0000 |
commit | 91307a366625e3ec7e618f012269130d2e5bba57 (patch) | |
tree | 9174f2733dd20ff6cd4b25d0038bdccf268e519f /ldso/Makefile | |
parent | ae9bb92ccc2b4a9a75b09c59e1351a78e6a6da53 (diff) |
This patch allows powerpc to compile again. It also checks if we
are compiling for an arch for which uClibc has an ld.so or not,
and otherwise sets things up to use the system ld.so.
-Erik
Diffstat (limited to 'ldso/Makefile')
-rw-r--r-- | ldso/Makefile | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/ldso/Makefile b/ldso/Makefile index a93c6f552..314d22522 100644 --- a/ldso/Makefile +++ b/ldso/Makefile @@ -5,15 +5,23 @@ SUBDIRS = util d-link libdl # man all: - set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done + @if [ -d d-link/$(TARGET_ARCH) ] ; then \ + set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done \ + fi; install: all - install -d $(INSTALL_DIR)/lib - install -d $(INSTALL_DIR)/etc - install -m 755 ./d-link/$(DLINKER).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/ - install -m 644 ./libdl/$(LIBDL).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/ - (cd $(INSTALL_DIR)/lib/;ln -sf $(DLINKER).$(LDSO_VMAJOR) $(DLINKER)) - (cd $(INSTALL_DIR)/lib/;ln -sf $(LIBDL).$(LDSO_VMAJOR) $(LIBDL)) + @if [ -d d-link/$(TARGET_ARCH) ] ; then \ + install -d $(INSTALL_DIR)/lib + install -d $(INSTALL_DIR)/etc + install -m 755 ./d-link/$(DLINKER).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/ + install -m 644 ./libdl/$(LIBDL).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/ + (cd $(INSTALL_DIR)/lib/;ln -sf $(DLINKER).$(LDSO_VMAJOR) $(DLINKER)) + (cd $(INSTALL_DIR)/lib/;ln -sf $(LIBDL).$(LDSO_VMAJOR) $(LIBDL)) + fi; +d-link: + @if [ -d d-link/$(TARGET_ARCH) ] ; then \ + do $(MAKE) -C d-link ; done \ + fi; clean: set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d $@ ; done |