[uClibc] FIX ldso for SH-targets
Stefan Allius
allius at atecom.com
Tue Mar 2 15:22:49 UTC 2004
Hi Erik,
I made a mistake during my last merge, so I haven't tested the latest
and createst uClibc sources on my SH target. :-((
The goog news is, that the actual CVS tree works just fine for me without
my patch. So please forget it.
But there is still a little patch needed for the SH GCC compiler,
since my compiler don't support the -msoft-float option (GCC 3.3.1.):
Index: Rules.mak
===================================================================
RCS file: /net/projects/cvs/atecom/firmware/uClibc/Rules.mak,v
retrieving revision 1.1.1.38
retrieving revision 1.13
diff -u -b -B -w -p -r1.1.1.38 -r1.13
--- Rules.mak 2004/03/02 13:03:47 1.1.1.38
+++ Rules.mak 2004/03/02 14:51:19 1.13
@@ -182,8 +182,15 @@ CPU_CFLAGS=$(subst ",, $(strip $(CPU_CFL
LDADD_LIBFLOAT=
ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y)
# Add -msoft-float to the CPU_FLAGS since ldso and libdl ignore CFLAGS.
-# If -msoft-float isn't supported, we want an error anyway.
+#
+# For SuperH targets some GNU compilers don't accept the -msoft-float flag, but always
+# build soft-float code for CPU's without a FPU (like SH3).
+ifeq ($(strip $(TARGET_ARCH)),sh)
+ CPU_CFLAGS += $(call check_gcc,-msoft-float,)
+else
+# For all other targets we want an error, if -msoft-float isn't supported.
CPU_CFLAGS += -msoft-float
+endif
ifeq ($(strip $(TARGET_ARCH)),arm)
LDADD_LIBFLOAT=-lfloat
endif
Bye Stefan
--
----------------------------------
Stefan Allius
senior software engineer
ATecoM GmbH
advanced telecommunication modules
Pascalstrasse 67
D-52076 Aachen
Germany
Tel: +49/2408/9596-0
Fax: +49/2408/9596-900
eMail: allius at atecom.com
URL: http://www.atecom.com
----------------------------------
More information about the uClibc
mailing list