mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
Fix build with clang
This commit is contained in:
parent
6b7f34837b
commit
8c604d6543
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275908
2 changed files with 7 additions and 4 deletions
|
@ -40,7 +40,8 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in
|
|||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/doc/cdk|/share/doc/cdk| ; s|VERSION)|VERSION_MAJOR)|' ${WRKSRC}/Makefile.in
|
||||
@${REINPLACE_CMD} -e 's|/doc/cdk|/share/doc/cdk| ; s|VERSION)|VERSION_MAJOR)|' \
|
||||
-e 's|gcc|${CC}|g' ${WRKSRC}/Makefile.in
|
||||
|
||||
pre-install:
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
--- ./Makefile.orig 2011-05-04 04:52:15.000000000 +0200
|
||||
+++ ./Makefile 2011-05-04 06:51:14.794591784 +0200
|
||||
@@ -8,16 +8,14 @@
|
||||
+++ ./Makefile 2011-06-20 18:57:17.703992054 +0200
|
||||
@@ -7,17 +7,15 @@
|
||||
REVISION = 5
|
||||
LIB = libcli.so
|
||||
|
||||
CC = gcc
|
||||
-CC = gcc
|
||||
-DEBUG = -g
|
||||
-OPTIM = -O3
|
||||
-CFLAGS += $(DEBUG) $(OPTIM) -Wall -Wformat-security -Wno-format-zero-length
|
||||
+CC ?= gcc
|
||||
+CFLAGS += -Wall -Wformat-security -Wno-format-zero-length
|
||||
LDFLAGS += -shared
|
||||
LIBPATH += -L.
|
||||
|
|
Loading…
Add table
Reference in a new issue