This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fixed SH endianness problem with lib_a-trap.o



Due to the recent makefile changes, we were building a big-endian lib_a-trap.o
for little endian SH targets.  This makes any attempts to link with this
object fail, including a test during configuring of libstdc++-v3.

The multilib-relevant flags are in $(CFLAGS).
Since we are using the compiler to invoke the assembler, there is no harm
in passing in other compiler options like -O or -g; in fact, that's how it
worked before.  Thus, I have added $(CFLAGS) to AM_CCASFLAGS.
(I Have applied the patch by hand to Makefile.in because I don't have the
 right automake version available yet.  I have 1.9.6 but it appears I need
 an exact match.)

2006-05-03  J"orn Rennecke <joern.rennecke@st.com>

	* libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
	* libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.

Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/sh/Makefile.am,v
retrieving revision 1.4
diff -p -u -r1.4 Makefile.am
--- Makefile.am	1 May 2006 22:01:04 -0000	1.4
+++ Makefile.am	3 May 2006 21:40:45 -0000
@@ -4,7 +4,7 @@ AUTOMAKE_OPTIONS = cygnus
 
 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
 
-AM_CCASFLAGS = $(INCLUDES)
+AM_CCASFLAGS = $(INCLUDES) $(CFLAGS)
 
 noinst_LIBRARIES = lib.a
 
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/sh/Makefile.in,v
retrieving revision 1.10
diff -p -u -r1.10 Makefile.in
--- Makefile.in	1 May 2006 22:01:04 -0000	1.10
+++ Makefile.in	3 May 2006 21:40:47 -0000
@@ -181,7 +181,7 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 AUTOMAKE_OPTIONS = cygnus
 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
-AM_CCASFLAGS = $(INCLUDES)
+AM_CCASFLAGS = $(INCLUDES) $(CFLAGS)
 noinst_LIBRARIES = lib.a
 lib_a_SOURCES = syscalls.c trap.S creat.c ftruncate.c truncate.c
 lib_a_CCASFLAGS = $(AM_CCASFLAGS)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]