mirror of
https://git.freebsd.org/ports.git
synced 2025-07-01 01:20:31 -04:00
- Fix build on ia64 - Fix m_memalign for jemalloc - Set DYNAMIPS_ARCH on non-i386 properly Approved by: portmgr
31 lines
1 KiB
Text
31 lines
1 KiB
Text
--- Makefile.orig Tue Feb 14 23:54:17 2006
|
|
+++ Makefile Wed Mar 8 22:54:11 2006
|
|
@@ -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=0.2.4
|
|
|
|
@@ -25,14 +28,15 @@
|
|
CFLAGS+=-g -Wall -O3 -fomit-frame-pointer -DJIT_ARCH=\"$(DYNAMIPS_ARCH)\" \
|
|
-DARCH_INC_FILE=$(ARCH_INC_FILE) -DDYNAMIPS_VERSION=\"$(VERSION)\" \
|
|
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
|
|
- -DHAS_RFC2553=$(HAS_RFC2553)
|
|
+ -DHAS_RFC2553=$(HAS_RFC2553) -DHAS_POSIX_MEMALIGN=$(HAS_POSIX_MEMALIGN)
|
|
|
|
PCAP_LIB=-lpcap
|
|
|
|
ifeq ($(shell uname), FreeBSD)
|
|
PTHREAD_LIBS?=-pthread
|
|
- CFLAGS+=-I/usr/local/include -I/usr/local/include/libelf $(PTHREAD_CFLAGS)
|
|
- LIBS=-L/usr/local/lib -L. -lelf $(PTHREAD_LIBS)
|
|
+ LOCALBASE?=/usr/local
|
|
+ CFLAGS+=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/libelf $(PTHREAD_CFLAGS)
|
|
+ LIBS=-L$(LOCALBASE)/lib -L. -lelf $(PTHREAD_LIBS)
|
|
else
|
|
ifeq ($(shell uname -s), Darwin)
|
|
CFLAGS+=-I/usr/local/include
|