diff options
author | 1999-03-10 23:22:19 +0000 | |
---|---|---|
committer | 1999-03-10 23:22:19 +0000 | |
commit | 5388e391d4f08098eb1426552e8fba9f14ed9404 (patch) | |
tree | 6288bcb2d62085000e66b41b7736b8b0ad4e9b56 | |
parent | FreeBSD vs. OpenBSD-isms (Fx, configuration, etc) (diff) | |
download | wireguard-openbsd-5388e391d4f08098eb1426552e8fba9f14ed9404.tar.xz wireguard-openbsd-5388e391d4f08098eb1426552e8fba9f14ed9404.zip |
pass COPTS in CFLAGS for those ports that do not override CFLAGS;
NOTE: Some (most?) ports override CFLAGS. This includes all ports
that use imake. Therefore this change is not as useful as it should be.
-rw-r--r-- | share/mk/bsd.port.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index 478d3711157..c2efb1a1529 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -1,6 +1,6 @@ #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 -# $OpenBSD: bsd.port.mk,v 1.76 1999/03/05 16:32:49 espie Exp $ +# $OpenBSD: bsd.port.mk,v 1.77 1999/03/10 23:22:19 marc Exp $ # # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. @@ -28,7 +28,7 @@ OpenBSD_MAINTAINER= marc@OpenBSD.ORG # NEED_VERSION: we need at least this version of bsd.port.mk for this # port to build -FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.76 1999/03/05 16:32:49 espie Exp $$ +FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.77 1999/03/10 23:22:19 marc Exp $$ .if defined(NEED_VERSION) _VERSION_REVISION=${FULL_REVISION:M[0-9]*.*} @@ -559,6 +559,11 @@ PREFERRED_CIPHERS?= ${CIPHERS} PORTPATH?= /usr/bin:/bin:/usr/sbin:/sbin:${LOCALBASE}/bin:${X11BASE}/bin +# Add any COPTS to CFLAGS. Note: programs that use imake do not +# use CFLAGS! Also, many (most?) ports hard code CFLAGS, ignoring +# what we pass in. +CFLAGS+= ${COPTS} + MAKE_FLAGS?= -f MAKEFILE?= Makefile MAKE_ENV+= PATH=${PORTPATH} PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" CFLAGS="${CFLAGS}" |