Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2013 18:58:12 +0000 (UTC)
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r327176 - in head/net-mgmt: xymon-client/files xymon-server/files
Message-ID:  <201309131858.r8DIwCt6091951@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Fri Sep 13 18:58:11 2013
New Revision: 327176
URL: http://svnweb.freebsd.org/changeset/ports/327176

Log:
  Fix building on HEAD with no GCC
  
  Approved by:	swills (mentor)

Added:
  head/net-mgmt/xymon-client/files/patch-build-Makefile.FreeBSD   (contents, props changed)
  head/net-mgmt/xymon-server/files/patch-build-Makefile.FreeBSD   (contents, props changed)

Added: head/net-mgmt/xymon-client/files/patch-build-Makefile.FreeBSD
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/xymon-client/files/patch-build-Makefile.FreeBSD	Fri Sep 13 18:58:11 2013	(r327176)
@@ -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,"

Added: head/net-mgmt/xymon-server/files/patch-build-Makefile.FreeBSD
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/xymon-server/files/patch-build-Makefile.FreeBSD	Fri Sep 13 18:58:11 2013	(r327176)
@@ -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,"



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