From 91307a366625e3ec7e618f012269130d2e5bba57 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 4 May 2001 22:29:43 +0000 Subject: 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 --- ldso/Makefile | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'ldso') 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 -- cgit v1.2.3