Date: 31 Jan 2003 11:33:53 +0300 From: Akifyev Sergey <asa@gascom.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/47716: ports Makefile CFLAGS substituted incorrectly Message-ID: <1044002032.274.64.camel@asa.gascom.net.ru>
next in thread | raw e-mail | index | archive | help
>Number: 47716 >Category: ports >Synopsis: ports Makefile CFLAGS substitution doesn't always work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 31 00:40:13 PST 2003 >Closed-Date: >Last-Modified: >Originator: Akifyev Sergey >Release: FreeBSD 4.7-RELEASE i386 >Organization: JSC Gascom >Environment: System: FreeBSD asa.gascom.net.ru 4.7-RELEASE FreeBSD 4.7-RELEASE #3: Mon Jan 27 12:00:27 MSK 2003 asa@asa.gascom.net.ru:/usr/src/sys/compile/KERNEL i386 >Description: Standard ports system makefile (bsd.port.mk) incorrectly appends CFLAGS variable from /etc/make.conf to CFLAGS with which port is to be compiled. It should include one space character before CFLAGS value, to be sure that it will not produce "glued" arguments. In many ports, system exported CFLAGS is also appended without space, so it produces compiler arguments like: gcc -Wall -I. -I..-O2 -pipe something.c -o something.o ^^^^^^^ I've discovered this, while building gnome2 port/dependencies. >How-To-Repeat: Add following line to /etc/make.conf CFLAGS=3D-O2 -pipe and try to build some ports >Fix: Workaround: Add this line with space included, like: CFLAGS=3D -O2 -pipe Fix: Add this line to bsd.port.mk (or, maybe, somewhere else?): CFLAGS=3D" ${CFLAGS}" --=20 regards, Akifyev Sergey <asa@gascom.ru> JSC Gascom <http://www.gascom.ru> PGP key available from: ftp://ftp.gascom.ru/pub/PGP-keys/asa.txt --=-7+0i/YNyI8R6GpC8YtaH Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQA+OjTwbu06QwmNwNsRAohiAJ4ikRwPlXa7SBmYmXrsvD0Dq0ZGrQCbB73U sWcFsu+gqVUCbMaX1V1ok2I= =k6GA -----END PGP SIGNATURE----- --=-7+0i/YNyI8R6GpC8YtaH-- >Release-Note: >Audit-Trail: >Unformatted: --=-7+0i/YNyI8R6GpC8YtaH Content-Type: text/plain Content-Transfer-Encoding: quoted-printable correctly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1044002032.274.64.camel>