summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-09-05 20:10:59 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-09-05 20:10:59 +0000
commit07f5036daae4df5aabbc6798daf831e181a94b95 (patch)
treedc87de9b90811121b2d528e45a020f299b0fd504
parentd42f11d7dcacdbfb839c22012c4adf7e0a803b3b (diff)
downloadpw-darwin-07f5036daae4df5aabbc6798daf831e181a94b95.tar.gz
pw-darwin-07f5036daae4df5aabbc6798daf831e181a94b95.tar.zst
pw-darwin-07f5036daae4df5aabbc6798daf831e181a94b95.zip
Use CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently adds
COPTS towards the end of final CFLAGS so that it can be used to override Makefile and other defaults. Using it in Makefiles risks having options set using it clobbered when somebody uses it on the command line. Approved by: bde
-rw-r--r--chpass/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/chpass/Makefile b/chpass/Makefile
index 8b2db0b..3930873 100644
--- a/chpass/Makefile
+++ b/chpass/Makefile
@@ -22,11 +22,11 @@ LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
-COPTS+= -DYP -I. -I${.CURDIR}/../../libexec/ypxfr \
+CFLAGS+=-DYP -I. -I${.CURDIR}/../../libexec/ypxfr \
-I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx
#Some people need this, uncomment to activate
-#COPTS+= -DRESTRICT_FULLNAME_CHANGE
+#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
DPADD= ${LIBRPCSVC} ${LIBCRYPT} ${LIBMD}
LDADD+= -lrpcsvc -lcrypt -lmd