ports/159340: [patch] emulators/bochs: CFLAGS needs -I${LOCALBASE}/include if alsalib is installed
Joel Ray Holveck
joelh at piquan.org
Sun Jul 31 23:40:07 UTC 2011
>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 at 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:
More information about the freebsd-ports-bugs
mailing list