Module Name:    src
Committed By:   mrg
Date:           Sat Jan 31 08:50:01 UTC 2015

Modified Files:
        src/tools/gcc: mknative-gcc

Log Message:
kill the -fPIC that m68000 ends up with, fixing it in the specs
is not trivial..


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/tools/gcc/mknative-gcc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/gcc/mknative-gcc
diff -u src/tools/gcc/mknative-gcc:1.80 src/tools/gcc/mknative-gcc:1.81
--- src/tools/gcc/mknative-gcc:1.80	Fri Jan 30 12:23:47 2015
+++ src/tools/gcc/mknative-gcc	Sat Jan 31 08:50:01 2015
@@ -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 @@ get_libgcc () {
 	}	| 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

Reply via email to