ports/158122: x11/trayer: Respect CC (should fix build with clang)
Guido Falsi
mad at madpilot.net
Tue Jun 21 13:30:13 UTC 2011
>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 at 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:
More information about the freebsd-ports-bugs
mailing list