Date: Wed, 16 May 2012 12:33:28 +0100 From: Alan Hicks <ahicks@p-o.co.uk> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ahicks@p-o.co.uk Subject: ports/167957: [patch] audio/pulseaudio fix to enable building with clang Message-ID: <E1SUcTw-0004SM-Gr@p-o.co.uk> Resent-Message-ID: <201205161150.q4GBo2Q9056967@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1SUcTw-0004SM-Gr>