summaryrefslogtreecommitdiffstats
path: root/libgloss
diff options
context:
space:
mode:
authorMichael Frysinger <vapier@gentoo.org>2012-03-13 01:52:31 +0000
committerMichael Frysinger <vapier@gentoo.org>2012-03-13 01:52:31 +0000
commit5fd446407705d5c1045d5eab46d18e178df40e08 (patch)
tree3eb7ef607990f533be825396508aeab3f05a8ce3 /libgloss
parentf408b153cc3b806db2b20912e55954ba75396f46 (diff)
downloadcygnal-5fd446407705d5c1045d5eab46d18e178df40e08.tar.gz
cygnal-5fd446407705d5c1045d5eab46d18e178df40e08.tar.bz2
cygnal-5fd446407705d5c1045d5eab46d18e178df40e08.zip
libgloss: libnosys: use @host_makefile_frag@
Rather than inlining the generated rules, use @host_makefile_frag@ instead. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libgloss')
-rw-r--r--libgloss/ChangeLog7
-rw-r--r--libgloss/libnosys/Makefile.in33
2 files changed, 9 insertions, 31 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index 0553c26e1..b4a386fc8 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,5 +1,12 @@
2012-03-12 Mike Frysinger <vapier@gentoo.org>
+ * libnosys/Makefile.in (NEWLIB_CFLAGS, NEWLIB_LDFLAGS,
+ INCLUDES, CFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET,
+ AR_FLAGS, .c.o, .C.o, .s.o, .S.o, .c.s): Delete and replace
+ with @host_makefile_frag@.
+
+2012-03-12 Mike Frysinger <vapier@gentoo.org>
+
* config/default.mh (AR_FLAGS): Set to rc.
2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
diff --git a/libgloss/libnosys/Makefile.in b/libgloss/libnosys/Makefile.in
index 9deac8653..ff4c41647 100644
--- a/libgloss/libnosys/Makefile.in
+++ b/libgloss/libnosys/Makefile.in
@@ -78,37 +78,8 @@ GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
OUTPUTS = libnosys.a
-NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi`
-NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L${objroot}/newlib/; fi`
-
-INCLUDES = -I. -I$(srcdir)/..
-# Note that when building the library, ${MULTILIB} is not the way multilib
-# options are passed; they're passed in $(CFLAGS).
-CFLAGS_FOR_TARGET = ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS}
-LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS}
-AR_FLAGS = qc
-
-.c.o:
- $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $<
-
-.C.o:
- $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $<
-.s.o:
- $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $<
-
-#
-# GCC knows to run the preprocessor on .S files before it assembles them.
-#
-.S.o:
- $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $<
-
-#
-# this is a bogus target that'll produce an assembler from the
-# C source with the right compiler options. this is so we can
-# track down code generation or debug symbol bugs.
-#
-.c.s:
- $(CC) $(CFLAGS_FOR_TARGET) -S $(INCLUDES) $(CFLAGS) $<
+# Host specific makefile fragment comes in here.
+@host_makefile_frag@
all: ${OUTPUTS}