freebsd-ports/net/nepim/files/patch-Makefile
Li-Wen Hsu 0ba849e75e - Update to 0.52
- Unbreak with GCC 4.2

PR:		ports/128233
Submitted by:	Yi-Jheng Lin <yzlin AT cs.nctu.edu.tw>
Approved by:	maintainer timeout
2008-11-10 14:47:09 +00:00

23 lines
691 B
Text

--- Makefile.orig 2008-10-20 02:07:49.000000000 +0800
+++ Makefile 2008-10-20 02:14:16.000000000 +0800
@@ -38,17 +38,17 @@
# ENABLE_DLOPEN defined as -DHAVE_DLOPEN.
# Otherwise, tcpwrapper support is disabled.
-OOP_BASE = /usr/local/oop
+OOP_BASE = %%LOCALBASE%%
OOP_INC = $(OOP_BASE)/include
OOP_LIB = $(OOP_BASE)/lib
ENABLE_DLOPEN = -DHAVE_DLOPEN
-CC = gcc
+CC ?= gcc
WARN = -Wall
REENT = -D_REENTRANT
#DEBUG = -DNEPIM_DEBUG_KEEPALIVE -DNEPIM_DEBUG_FIXME
-CFLAGS = $(WARN) $(REENT) $(DEBUG) -g -ggdb -I$(OOP_INC) $(ENABLE_DLOPEN) \
+CFLAGS += $(WARN) $(REENT) $(DEBUG) -I$(OOP_INC) $(ENABLE_DLOPEN) \
-DHAVE_IPV6_MREQ
LDFLAGS += -L$(OOP_LIB) -loop