From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 21 13:30:12 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFE6F1065673 for ; Tue, 21 Jun 2011 13:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A8A8A8FC1F for ; Tue, 21 Jun 2011 13:30:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5LDUCdr006072 for ; Tue, 21 Jun 2011 13:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5LDUCSP006070; Tue, 21 Jun 2011 13:30:12 GMT (envelope-from gnats) Resent-Date: Tue, 21 Jun 2011 13:30:12 GMT Resent-Message-Id: <201106211330.p5LDUCSP006070@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Guido Falsi Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0DD3106566B for ; Tue, 21 Jun 2011 13:23:52 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 69C4B8FC1B for ; Tue, 21 Jun 2011 13:23:52 +0000 (UTC) Received: from megatron.madpilot.net (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP id 5E3921E6C for ; Tue, 21 Jun 2011 15:23:51 +0200 (CEST) Received: from megatron.madpilot.net ([127.0.0.1]) by megatron.madpilot.net (megatron.madpilot.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HcxMtophriNL for ; Tue, 21 Jun 2011 15:23:49 +0200 (CEST) Received: by megatron.madpilot.net (Postfix, from userid 1000) id E50611E62; Tue, 21 Jun 2011 15:23:48 +0200 (CEST) Message-Id: <20110621132348.E50611E62@megatron.madpilot.net> Date: Tue, 21 Jun 2011 15:23:48 +0200 (CEST) From: Guido Falsi To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/158122: x11/trayer: Respect CC (should fix build with clang) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Guido Falsi List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2011 13:30:13 -0000 >Number: 158122 >Category: ports >Synopsis: x11/trayer: Respect CC (should 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 Jun 21 13:30:12 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: Don't harcode gcc as compiler in program's Makefile. Also make sure it respects CFLAGS. added dir: files/ added file: files/patch-Makefile.common >How-To-Repeat: >Fix: diff -ruN trayer.old/files/patch-Makefile.common trayer/files/patch-Makefile.common --- trayer.old/files/patch-Makefile.common 1970-01-01 01:00:00.000000000 +0100 +++ trayer/files/patch-Makefile.common 2011-06-21 15:20:01.211761096 +0200 @@ -0,0 +1,15 @@ +--- Makefile.common.orig 2011-06-21 15:12:50.942593801 +0200 ++++ Makefile.common 2011-06-21 15:14:03.806674177 +0200 +@@ -15,10 +15,10 @@ + endif + endif + +-CC = gcc ++CC ?= gcc + LIBS = $(shell pkg-config --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -L/usr/X11R6/lib -lXmu + INCS = $(shell pkg-config --cflags gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) +-CFLAGS = -O2 # overwriten by command line or env. variable ++CFLAGS ?= -O2 # overwriten by command line or env. variable + CFLAGS += -Wall # always nice to have + ifneq (,$(DEVEL)) + CFLAGS := -g -Wall >Release-Note: >Audit-Trail: >Unformatted: