Only install backwards compat symlink for <machine/soundcard.h> 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 <machine/soundcard.h>. Pointed out by: bde
This commit is contained in:
parent
32d1ebac77
commit
c08e808e2a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50949
@ -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..."
|
||||
|
Loading…
Reference in New Issue
Block a user