Date: Sun, 31 Jul 2011 23:34:25 GMT From: Joel Ray Holveck <joelh@piquan.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/159340: [patch] emulators/bochs: CFLAGS needs -I${LOCALBASE}/include if alsalib is installed Message-ID: <201107312334.p6VNYPSM034589@red.freebsd.org> Resent-Message-ID: <201107312340.p6VNe7Uw039415@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 159340 >Category: ports >Synopsis: [patch] emulators/bochs: CFLAGS needs -I${LOCALBASE}/include if alsalib is installed >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 31 23:40:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Joel Ray Holveck >Release: 8.2-STABLE >Organization: >Environment: FreeBSD thor.piquan.org 8.2-STABLE FreeBSD 8.2-STABLE #1: Sun Jul 24 01:54:17 PDT 2011 root@thor.piquan.org:/usr/local/src/freebsd/src/sys/i386/compile/THOR i386 >Description: The configure process will search for alsalib using CPPFLAGS, which the port's Makefile sets to -I${LOCALBASE}/include. However, the actual make will only use CFLAGS, so if configure found alsalib, the make will fail because it can't find the .h files. >How-To-Repeat: Install audio/alsa-lib, then try to build emulators/bochs >Fix: Add ${CPPFLAGS} to CFLAGS in emulators/bochs/Makefile Patch attached with submission follows: --- emulators/bochs/Makefile.orig 2011-06-25 18:26:27.000000000 -0700 +++ emulators/bochs/Makefile 2011-07-31 16:28:13.000000000 -0700 @@ -68,7 +68,7 @@ X86_64 "Enable AMD x86-64 support" off \ XPM "Enable XPM library support" off -CFLAGS+= -fno-exceptions -fomit-frame-pointer +CFLAGS+= -fno-exceptions -fomit-frame-pointer ${CPPFLAGS} CXXFLAGS+= -fno-rtti CPPFLAGS= -I${LOCALBASE}/include LDFLAGS= -L${LOCALBASE}/lib >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107312334.p6VNYPSM034589>