[parisc-linux-cvs] Makefile tidyup
Matthew Wilcox
willy@ldl.fc.hp.com
Fri, 13 Jul 2001 22:40:16 -0600
Index: Makefile
===================================================================
RCS file: /home/cvs/parisc/linux/Makefile,v
retrieving revision 1.98
diff -u -p -r1.98 Makefile
--- Makefile 2001/07/14 04:08:22 1.98
+++ Makefile 2001/07/14 04:34:31
@@ -235,14 +235,6 @@ MRPROPER_DIRS = \
include arch/$(ARCH)/Makefile
-# use '-fno-strict-aliasing', but only if the compiler can take it
-CFLAGS += $(shell if $(CC) -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-fno-strict-aliasing"; fi)
-
-# Same for -ffunction-sections
-# This is needed for the new binutils as otherwise "ld -r" results in .text
-# sections that are too big (> 0x40000) for branches to reach stubs.
-CFLAGS += $(shell if $(CC) -ffunction-sections -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-ffunction-sections"; fi)
-
export CPPFLAGS CFLAGS AFLAGS
export NETWORKS DRIVERS LIBS HEAD LDFLAGS LINKFLAGS MAKEBOOT ASFLAGS
Index: arch/parisc/Makefile
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/Makefile,v
retrieving revision 1.26
diff -u -p -r1.26 Makefile
--- Makefile 2001/06/28 20:35:02 1.26
+++ Makefile 2001/07/14 04:34:31
@@ -49,6 +49,10 @@ CFLAGS += -mno-space-regs -mfast-indirec
# No fixed-point multiply
CFLAGS += -mdisable-fpregs
+# Without this, "ld -r" results in .text sections that are too big
+# (> 0x40000) for branches to reach stubs.
+CFLAGS += -ffunction-sections
+
# select which processor to optimise for
ifdef CONFIG_PA7100
CFLAGS += -march=1.1 -mschedule=7100