aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2011-06-25 15:45:34 +0800
committermiwi <miwi@FreeBSD.org>2011-06-25 15:45:34 +0800
commitdd85a0ee269a784f10ebc64246599bbe302ff687 (patch)
tree59e2470dd7897d4588dddd3aac30d0de2684b7cd
parent7135f7131e96201eed59ab16c0568f654c607b24 (diff)
downloadfreebsd-ports-gnome-dd85a0ee269a784f10ebc64246599bbe302ff687.tar.gz
freebsd-ports-gnome-dd85a0ee269a784f10ebc64246599bbe302ff687.tar.zst
freebsd-ports-gnome-dd85a0ee269a784f10ebc64246599bbe302ff687.zip
- Fix build with CLANG
PR: 158122 Submitted by: Guido Falsi <mad@madpilot.net>
-rw-r--r--x11/trayer/files/patch-Makefile.common15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/trayer/files/patch-Makefile.common b/x11/trayer/files/patch-Makefile.common
new file mode 100644
index 000000000000..88533336699d
--- /dev/null
+++ b/x11/trayer/files/patch-Makefile.common
@@ -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