1
0
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:
Mark Felder 2013-09-13 18:58:11 +00:00
parent 4862d488e9
commit 191cb29bac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327176
2 changed files with 36 additions and 0 deletions

View 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,"

View 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,"