Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  5 Jul 2011 11:42:20 +0200 (CEST)
From:      Guido Falsi <mad@madpilot.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/158663: misc/xosd: fix build with clang
Message-ID:  <20110705094220.AC9A414E5@megatron.madpilot.net>
Resent-Message-ID: <201107050950.p659o7Gw026163@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         158663
>Category:       ports
>Synopsis:       misc/xosd: fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 05 09:50:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Guido Falsi
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
none
>Environment:
System: FreeBSD megatron.madpilot.net 8.2-STABLE FreeBSD 8.2-STABLE #1: Mon Jun 6 20:10:31 CEST 2011 root@megatron.madpilot.net:/usr/obj/usr/src/sys/MEGATRON amd64

>Description:

Fix build with clang on 9-CURRENT.

While there make portlint happy about CFLAGS in CONFIGURE_ENV.

>How-To-Repeat:
>Fix:

diff -ruN xosd.old/Makefile xosd/Makefile
--- xosd.old/Makefile	2011-07-05 11:24:25.000000000 +0200
+++ xosd/Makefile	2011-07-05 11:25:31.000000000 +0200
@@ -19,8 +19,9 @@
 USE_XORG=	x11 xext xt sm ice
 USE_AUTOTOOLS=	libtool
 USE_LDCONFIG=	yes
+USE_CSTD=	gnu89
 CONFIGURE_ENV=	LIBS=${PTHREAD_LIBS}' -L${LOCALBASE}/lib' \
-		CFLAGS='${CFLAGS}' LOCALBASE='${LOCALBASE}' \
+		LOCALBASE='${LOCALBASE}' \
 		GTK_CONFIG='${GTK_CONFIG}' GLIB_CONFIG='${GLIB_CONFIG}' \
 		XMMS_PLUGINDIR=${LOCALBASE}/lib/xmms
 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110705094220.AC9A414E5>