diff options
author | feld <feld@FreeBSD.org> | 2013-09-14 02:58:11 +0800 |
---|---|---|
committer | feld <feld@FreeBSD.org> | 2013-09-14 02:58:11 +0800 |
commit | cb52987c6ac1c842b197ca8ef79eb366d307e0c5 (patch) | |
tree | 8e379a7893c4348d2f4c0665048de33ad351899f /net-mgmt/xymon-server | |
parent | d7beb00db855e2e2d206ddcc9f374eb43769abef (diff) | |
download | freebsd-ports-gnome-cb52987c6ac1c842b197ca8ef79eb366d307e0c5.tar.gz freebsd-ports-gnome-cb52987c6ac1c842b197ca8ef79eb366d307e0c5.tar.zst freebsd-ports-gnome-cb52987c6ac1c842b197ca8ef79eb366d307e0c5.zip |
Fix building on HEAD with no GCC
Approved by: swills (mentor)
Diffstat (limited to 'net-mgmt/xymon-server')
-rw-r--r-- | net-mgmt/xymon-server/files/patch-build-Makefile.FreeBSD | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-mgmt/xymon-server/files/patch-build-Makefile.FreeBSD b/net-mgmt/xymon-server/files/patch-build-Makefile.FreeBSD new file mode 100644 index 000000000000..62921e164092 --- /dev/null +++ b/net-mgmt/xymon-server/files/patch-build-Makefile.FreeBSD @@ -0,0 +1,18 @@ +--- build/Makefile.FreeBSD.orig 2013-09-13 09:58:10.760876623 -0500 ++++ build/Makefile.FreeBSD 2013-09-13 09:58:57.823389711 -0500 +@@ -6,13 +6,8 @@ + NETLIBS = + + # Compile flags for normal build +-CC = gcc +-GCCVER := $(shell gcc -dumpversion|cut -d. -f1) +-ifeq ($(GCCVER),4) +- CFLAGS = -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT -I/usr/local/include -L/usr/local/lib $(LFSDEF) $(OSDEF) +-else +- CFLAGS = -g -O2 -Wall -Wno-unused -D_REENTRANT -I/usr/local/include -L/usr/local/lib $(LFSDEF) $(OSDEF) +-endif ++CC ?= gcc ++CFLAGS = -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT -I/usr/local/include -L/usr/local/lib $(LFSDEF) $(OSDEF) + + + RPATH = "-Wl,--rpath," |