mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
Cause the makefile to respect CC and CFLAGS during compilation.
Reviewed by: John Polstra (Maintainer)
This commit is contained in:
parent
c55c536b4a
commit
e2f1161e05
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=17360
@ -1,11 +1,23 @@
|
||||
--- Makefile.orig Wed Mar 20 09:59:03 1996
|
||||
+++ Makefile Wed Jul 30 12:04:03 1997
|
||||
@@ -193,12 +193,18 @@
|
||||
--- Makefile.orig Wed Dec 25 15:43:50 1996
|
||||
+++ Makefile Mon Mar 22 23:12:48 1999
|
||||
@@ -71,8 +71,9 @@
|
||||
#CC=cc
|
||||
#COPT=-O -DNOT_ANSI_C -DPROTOTYPES=0
|
||||
# for gcc, use
|
||||
-CC=gcc
|
||||
-COPT=-O2 -DPROTOTYPES=1 -DNOTDEF
|
||||
+CC?=gcc
|
||||
+CFLAGS?=-O2
|
||||
+CFLAGS+=-DPROTOTYPES=1 -DNOTDEF
|
||||
|
||||
#1B: paths:
|
||||
BINDIR=/usr/local/bin
|
||||
@@ -193,12 +194,18 @@
|
||||
## not sure what to do for NeXT. I think this works:
|
||||
#CFLAGS=$(COPT) -posix -D_BSD -DANYPORT -I$(RINCLUDES)
|
||||
|
||||
+## use these for FreeBSD
|
||||
+CFLAGS=$(COPT) -DBSD44 -DANYPORT -DSHORTLINKS
|
||||
+CFLAGS+=-DBSD44 -DANYPORT -DSHORTLINKS
|
||||
+LIBS=-lrpcsvc
|
||||
+COMPAT=-lcompat
|
||||
+RPCOPTS=
|
||||
|
Loading…
Reference in New Issue
Block a user