summaryrefslogtreecommitdiff
path: root/usr.bin/cpp/Makefile
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-04 01:50:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-04 01:50:34 +0000
commit99dba395cb3862f85040cccc73f0cae085714498 (patch)
treecf731a773a5bc87adaf27e6c481ae9e98c682002 /usr.bin/cpp/Makefile
parent6599c28df296b0cc7a2554bcc508847368f10603 (diff)
create /usr/libexec/cpp as a symbolic link
Diffstat (limited to 'usr.bin/cpp/Makefile')
-rw-r--r--usr.bin/cpp/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cpp/Makefile b/usr.bin/cpp/Makefile
index 844fed8d4d4..91df434cc80 100644
--- a/usr.bin/cpp/Makefile
+++ b/usr.bin/cpp/Makefile
@@ -1,9 +1,13 @@
-# $Id: Makefile,v 1.1 1996/01/02 13:49:07 deraadt Exp $
+# $Id: Makefile,v 1.2 1996/01/04 01:50:33 deraadt Exp $
NOMAN=
beforeinstall:
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/cpp.sh ${DESTDIR}${BINDIR}/cpp
+ if [ `cc -print-libgcc-file-name` != /usr/lib/libgcc.a ]; then \
+ (cd ${DESTDIR}/usr/libexec; rm -f cpp; \
+ ln -s `cc -print-libgcc-file-name | sed -e 's/libgcc\.a/cpp/'` cpp); \
+ fi
.include <bsd.prog.mk>