Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/gcc kill the -fPIC that m68000 ends up with, fixing it...
details: https://anonhg.NetBSD.org/src/rev/73eecee7ac34
branches: trunk
changeset: 335931:73eecee7ac34
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Jan 31 08:50:01 2015 +0000
description:
kill the -fPIC that m68000 ends up with, fixing it in the specs
is not trivial..
diffstat:
tools/gcc/mknative-gcc | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r ea8895b3d128 -r 73eecee7ac34 tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc Fri Jan 30 23:00:06 2015 +0000
+++ b/tools/gcc/mknative-gcc Sat Jan 31 08:50:01 2015 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mknative-gcc,v 1.80 2015/01/30 12:23:47 mrg Exp $
+# $NetBSD: mknative-gcc,v 1.81 2015/01/31 08:50:01 mrg Exp $
#
# Shell script for generating all the constants needed for a native
# platform build of gcc.
@@ -97,6 +97,14 @@
} | sanitise_includes \
| write_mk $_OUTDIRBASE/lib/lib$_subdir/arch/$MACHINE_ARCH/defs.mk
+ if [ "${MACHINE_ARCH}" = "m68000" ]
+ then
+ ex <<__EOF__ $_OUTDIR/lib/lib$_subdir/arch/$MACHINE_ARCH/defs.mk
+/G_LIBGCC2_CFLAGS/ s/-fPIC//
+wq
+__EOF__
+ fi
+
for f in auto-target.h; do
write_c $_OUTDIRBASE/lib/lib$_subdir/arch/$MACHINE_ARCH/$f \
<$_TMPDIR/$_PLATFORM/libgcc/$f
Home |
Main Index |
Thread Index |
Old Index