mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Fix building on HEAD with no GCC
Approved by: swills (mentor)
This commit is contained in:
parent
4862d488e9
commit
191cb29bac
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327176
18
net-mgmt/xymon-client/files/patch-build-Makefile.FreeBSD
Normal file
18
net-mgmt/xymon-client/files/patch-build-Makefile.FreeBSD
Normal file
@ -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,"
|
18
net-mgmt/xymon-server/files/patch-build-Makefile.FreeBSD
Normal file
18
net-mgmt/xymon-server/files/patch-build-Makefile.FreeBSD
Normal file
@ -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,"
|
Loading…
Reference in New Issue
Block a user