summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-26 21:25:23 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-08-26 21:25:23 +0000
commite4e93bf8c7a9b4a17e478c2cd290df471c956b22 (patch)
tree9b416b5e25b71046efd4a46a6801aa819c9541a0 /gnu/usr.bin
parent4e563c7071bdb64a3afc777078b7882145a9ddf2 (diff)
Our /usr/libexec/cpp link creation wasn't suitable for cross-builds
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/gcc/Makefile.bsd-wrapper9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/usr.bin/gcc/Makefile.bsd-wrapper b/gnu/usr.bin/gcc/Makefile.bsd-wrapper
index f4d6b4a5274..2e14c43345e 100644
--- a/gnu/usr.bin/gcc/Makefile.bsd-wrapper
+++ b/gnu/usr.bin/gcc/Makefile.bsd-wrapper
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.16 1996/08/25 15:39:13 downsj Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.17 1996/08/26 21:25:20 niklas Exp $
MAN= cccp.1 gcc.1 cp/g++.1 f/g77.1
MLINKS+= gcc.1 cc.1
@@ -38,8 +38,11 @@ install: maninstall
if [ -e ${DESTDIR}/usr/lib/libf2c.a ]; then \
chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/lib/libf2c.a; \
chmod 444 ${DESTDIR}/usr/lib/libf2c.a; \
- fi
-
+ fi; \
+ __target=`sed -n '/^target=/s/target=//p' Makefile`; \
+ __version=`sed -n '/^version=/s/version=//p' Makefile`; \
+ ln -fs /usr/lib/gcc-lib/$$__target/$$__version/cpp \
+ ${DESTDIR}/usr/libexec
clean cleandir:
rm -f ${CLEANFILES}