diff options
author | dd <dd@FreeBSD.org> | 2001-09-05 20:10:59 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-09-05 20:10:59 +0000 |
commit | 91ffaa180c9fedbda554ad6af11ab9fa3c25995e (patch) | |
tree | daeeec3a70e25abbb362be816bcbe28a07febf84 /sbin | |
parent | 860ee32ac40bb6e9ceb0f6e2000eccd8e9ed3755 (diff) | |
download | FreeBSD-src-91ffaa180c9fedbda554ad6af11ab9fa3c25995e.zip FreeBSD-src-91ffaa180c9fedbda554ad6af11ab9fa3c25995e.tar.gz |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/Makefile | 2 | ||||
-rw-r--r-- | sbin/ping/Makefile | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ifconfig/Makefile b/sbin/ifconfig/Makefile index fd60e06..08d130c 100644 --- a/sbin/ifconfig/Makefile +++ b/sbin/ifconfig/Makefile @@ -28,7 +28,7 @@ DPADD= ${LIBIPX} LDADD= -lipx .endif -COPTS= -DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \ +CFLAGS+=-DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \ -Wnested-externs -I.. .include <bsd.prog.mk> diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile index 1cb5d07..45ca449 100644 --- a/sbin/ping/Makefile +++ b/sbin/ping/Makefile @@ -4,9 +4,9 @@ PROG= ping MAN= ping.8 BINMODE=4555 -COPTS+= -Wall -Wmissing-prototypes +CFLAGS+=-Wall -Wmissing-prototypes .if ${MACHINE_ARCH} == "alpha" -COPTS+= -fno-builtin # GCC's builtin memcpy doesn't do unaligned copies +CFLAGS+=-fno-builtin # GCC's builtin memcpy doesn't do unaligned copies .endif DPADD= ${LIBM} LDADD= -lm |