diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 1999-03-10 23:22:20 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 1999-03-10 23:22:20 +0000 |
commit | 181fc17fd16baad70e16a3715d9aff068f522021 (patch) | |
tree | 75c8cd1a3158499e0ea924825e3bc61c641863dc /share | |
parent | 65f63b5c7064306c7c40922d7e85b975060dbb08 (diff) |
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.
Diffstat (limited to 'share')
-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}" |