fd33bfb7f2
function for resolving paths. Make pathadj() no longer warn about symlinks. Symlinks in /dev are regularly used in several places like LVM . The warning was also only visible when calling a mount_* command directly as mount(8) itself would resolve the path witout warning before passing it to a mount_* command.
18 lines
344 B
Makefile
18 lines
344 B
Makefile
# $NetBSD: Makefile,v 1.15 2020/07/26 08:20:23 mlelstv Exp $
|
|
# @(#)Makefile 8.4 (Berkeley) 7/13/94
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= mount_union
|
|
SRCS= mount_union.c pathadj.c
|
|
MAN= mount_union.8
|
|
|
|
MOUNT= ${NETBSDSRCDIR}/sbin/mount
|
|
CPPFLAGS+= -I${NETBSDSRCDIR}/sys -I${MOUNT}
|
|
.PATH: ${MOUNT}
|
|
|
|
DPADD+=${LIBUTIL}
|
|
LDADD+=-lutil
|
|
|
|
.include <bsd.prog.mk>
|