diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-05-14 21:43:03 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-05-14 21:43:03 +0000 |
commit | cdb7ab9a34663e6cf75d4a6100a7a3af84e9b750 (patch) | |
tree | 510b5c3029f5f140e768db5fa075d062d8a36423 | |
parent | 16702423142900702c4d825f9b806f9b19b77356 (diff) |
cross-gcc improvement, install cc link, and a nice cpp
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.30 1998/05/11 20:34:54 niklas Exp $ +# $OpenBSD: Makefile,v 1.31 1998/05/14 21:43:02 niklas Exp $ # # For more information on building in tricky environments, please see @@ -253,6 +253,16 @@ cross-gcc: GCC_FOR_TARGET="./xgcc -B./ -I${CROSSDIR}/usr/include" && \ ${MAKE} BISON=yacc LANGUAGES=c LDFLAGS=${LDSTATIC} \ GCC_FOR_TARGET="./xgcc -B./ -I${CROSSDIR}/usr/include" install) + ln -sf ${CROSSDIR}/usr/bin/`cat ${CROSSDIR}/TARGET_CANON`-gcc \ + ${CROSSDIR}/usr/bin/cc + CPP=`${CROSSDIR}/usr/bin/cc -print-libgcc-file-name | \ + sed 's/libgcc\.a/cpp/'`; \ + sed -e 's#/usr/libexec/cpp#'$$CPP'#' \ + -e 's#/usr/include#${CROSSDIR}/usr/include#' usr.bin/cpp/cpp.sh \ + >${CROSSDIR}/usr/bin/cpp + chmod ${BINMODE} ${CROSSDIR}/usr/bin/cpp + chown ${BINOWN}.${BINGRP} ${CROSSDIR}/usr/bin/cpp + .endif .include <bsd.subdir.mk> |