[uClibc]Patch for libm makefile

Simon Rowe srowe at cambridgebroadband.com
Fri Nov 8 10:54:28 UTC 2002


The libm makefile still tries to recurse into the powerpc subdirectory (which 
has code using FP assembler) even if HAS_FPU is false. Here's a patch which 
works for my configuration, ppc_8xx

diff -a -u -r1.32 Makefile
--- libm/Makefile       31 Oct 2002 18:20:12 -0000      1.32
+++ libm/Makefile       8 Nov 2002 10:52:18 -0000
@@ -34,10 +34,11 @@
 TOPDIR=../
 include $(TOPDIR)Rules.mak

+DIRS =
+ifeq ($(strip $(HAS_FPU)),y)
 ifeq ($(TARGET_ARCH),$(wildcard $(TARGET_ARCH)))
 DIRS = $(TARGET_ARCH)
-else
-DIRS =
+endif
 endif
 ALL_SUBDIRS = powerpc

-- 
Simon Rowe
Cambridge Broadband Ltd



More information about the uClibc mailing list