-By adding MKGCC=yes and MKGCCCMDS=yes on the make commandline it is now possible to compile and install GCC on the system. Before doing this, if you are not using the build.sh script, you will need to call the fetch scripts in order to retrieve the sources of GCC and its dependencies. -Reduce difference with NetBSD share/mk Move Minix-specific parameters from bsd.gcc.mk to bsd.own.mk, which is anyway patched, so that bsd.gcc.mk is now aligned on the NetBSD version. -Clean libraries dependencies, compiles stdc++ only if gcc is also compiled (it is part of the gcc sources) -Correct minix.h header sequence, cleanup spec headers. -Fix cross-compilation from a 32bit host targeting MINIX/arm Change-Id: I1b234af18eed4ab5675188244e931b2a2b7bd943
26 lines
774 B
Makefile
26 lines
774 B
Makefile
# $NetBSD: Makefile.hacks,v 1.2 2011/07/03 07:23:19 mrg Exp $
|
|
|
|
# some random crap we need in a few places
|
|
|
|
# these aren't necessary but are #include'd
|
|
FAKEHEADERS= ${EXTRA_FAKEHEADERS} insn-flags.h insn-constants.h sysroot-suffix.h
|
|
${FAKEHEADERS}:
|
|
${_MKTARGET_CREATE}
|
|
touch ${.TARGET}
|
|
tm.h ${SRCS}: ${FAKEHEADERS}
|
|
CLEANFILES+= ${FAKEHEADERS}
|
|
|
|
# arm.h wants MACHMODE aka "enum machine_mode" so we provide a hackful
|
|
# one here to help build libs before gcc itself is built.
|
|
|
|
# XXX arm hack
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "armeb" || ${MACHINE_ARCH} == "earm"
|
|
${OBJS}: insn-modes.h
|
|
# XXX XXX
|
|
${__DPSRCS.d}: insn-modes.h
|
|
insn-modes.h:
|
|
${_MKTARGET_CREATE}
|
|
echo "enum machine_mode { X };" > ${.TARGET}
|
|
DPSRCS+= insn-modes.h
|
|
CLEANFILES+= insn-modes.h
|
|
.endif
|