From c08e808e2acf167b6967689ad1bd9326d1dc59c0 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 5 Sep 1999 07:58:28 +0000 Subject: [PATCH] Only install backwards compat symlink for if using the default SHARED=copies, otherwise the kernel source tree gets modified if /usr/include/machine is a symlink to the source tree (which is not the case by default). Nothing in our src tree uses . Pointed out by: bde --- include/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/Makefile b/include/Makefile index db759595b486..8d4cfde5bc71 100644 --- a/include/Makefile +++ b/include/Makefile @@ -33,9 +33,9 @@ RPCFILES= auth.h auth_unix.h clnt.h pmap_clnt.h pmap_prot.h pmap_rmt.h \ MFILES= float.h floatingpoint.h stdarg.h varargs.h # posix4/aio.h conflicts with dysons and isn't installed: -PFILES= mqueue.h sched.h semaphore.h \ - # aio.h +PFILES= mqueue.h sched.h semaphore.h # aio.h +# Only for default SHARED=copies case SFILES= soundcard.h LFILES= aio.h errno.h fcntl.h inttypes.h linker_set.h poll.h syslog.h termios.h @@ -90,9 +90,6 @@ beforeinstall: ${SHARED} .for i in ${PFILES} ln -sf posix4/$i ${DESTDIR}/usr/include/$i .endfor -.for i in ${SFILES} - ln -sf ../sys/$i ${DESTDIR}/usr/include/machine/$i -.endfor copies: .for i in ${LDIRS} ${LNOHEADERDIRS} machine @@ -112,6 +109,9 @@ copies: ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ ${DESTDIR}/usr/include/machine .endif +.for i in ${SFILES} + ln -sf ../sys/$i ${DESTDIR}/usr/include/machine/$i +.endfor symlinks: @${ECHO} "Setting up symlinks to kernel source tree..."