ports/167957: [patch] audio/pulseaudio fix to enable building with clang
Alan Hicks
ahicks at p-o.co.uk
Wed May 16 11:50:03 UTC 2012
>Number: 167957
>Category: ports
>Synopsis: [patch] audio/pulseaudio fix to enable building with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed May 16 11:50:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Alan Hicks
>Release: FreeBSD 9.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD schnittke.p-o.co.uk 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
pulseaudio uses gnu extensions that need to be enabled when building with clang
to avoid 'invalid use of a cast in a inline asm context requiring an l-value'.
>How-To-Repeat:
Build with clang on 9.0-RELEASE
>Fix:
Apply the attached patch to enable building under clang.
--- pulseaudio.diff begins here ---
--- Makefile.bak 2012-05-15 13:44:49.000000000 +0100
+++ Makefile 2012-05-15 17:52:56.000000000 +0100
@@ -42,6 +42,10 @@
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
+.if ${CC} == clang
+CFLAGS+= -fheinous-gnu-extensions
+.endif
+
CONFIGURE_ARGS= --localstatedir=/var \
--with-database=gdbm \
--without-caps \
--- pulseaudio.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list