1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/emulators/dynamips/files/patch-Makefile
Max Khon 3e9eaed62a Update to 0.2.7.
PR:		113808
Submitted by:	Pavel I Volkov
2007-07-03 15:29:23 +00:00

36 lines
1.1 KiB
Plaintext

--- Makefile.orig Thu Feb 8 15:23:36 2007
+++ Makefile Thu Feb 8 15:34:39 2007
@@ -12,6 +12,9 @@
# (WinPcap is used for Cygwin)
HAS_PCAP?=1
+# Change this to 1 if your system has posix_memalign
+HAS_POSIX_MEMALIGN?=0
+
# Current dynamips release
VERSION_TRAIN=0.2.7
VERSION_SUB=
@@ -34,16 +37,17 @@
-DJIT_ARCH=\"$(DYNAMIPS_ARCH)\" \
-DARCH_INC_FILE=$(ARCH_INC_FILE) -DDYNAMIPS_VERSION=\"$(VERSION)\" \
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
- -DHAS_RFC2553=$(HAS_RFC2553)
+ -DHAS_RFC2553=$(HAS_RFC2553) -DHAS_POSIX_MEMALIGN=$(HAS_POSIX_MEMALIGN)
-PCAP_LIB=/usr/local/lib/libpcap.a
-#PCAP_LIB=-lpcap
+#PCAP_LIB=/usr/local/lib/libpcap.a
+PCAP_LIB=-lpcap
ifeq ($(shell uname), FreeBSD)
PTHREAD_LIBS?=-pthread
- CFLAGS+=-I/usr/local/include -I/usr/local/include/libelf $(PTHREAD_CFLAGS) \
+ LOCALBASE?=/usr/local
+ CFLAGS+=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/libelf $(PTHREAD_CFLAGS) \
-D_FILE_OFFSET_BITS=64
- LIBS=-L/usr/local/lib -L. -lelf $(PTHREAD_LIBS)
+ LIBS=-L$(LOCALBASE)/lib -L. -lelf $(PTHREAD_LIBS) $(LDFLAGS)
else
ifeq ($(shell uname), Linux)
PTHREAD_LIBS?=-lpthread