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 --- extra/gcc-uClibc/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'extra/gcc-uClibc') diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile index 75c823086..d28ab8cc9 100644 --- a/extra/gcc-uClibc/Makefile +++ b/extra/gcc-uClibc/Makefile @@ -2,7 +2,12 @@ TOPDIR = ../../ include $(TOPDIR)Rules.mak # NOTE: This may need to be modified for your system -DYNAMIC_LINKER = $(INSTALL_DIR)/lib/ld-linux-uclibc.so.$(MAJOR_VERSION) +ifeq ($(LDSO_PRESENT), $(TARGET_ARCH)) + DYNAMIC_LINKER = $(INSTALL_DIR)/lib/ld-linux-uclibc.so.$(MAJOR_VERSION) +else + DYNAMIC_LINKER=$(SYSTEM_LDSO) +endif + UCLIBC_DIR = $(shell (cd ../.. ; /bin/pwd)) GCC_BIN = $(shell which $(CC)) -- cgit v1.2.3