ports/emulators/simh/files/patch-makefile
Edward Tomasz Napierala 21fe6ee426 Remove dependency on ports version of libpcap; it's no longer needed
and causes build problems for qemu-devel.

Submitted by:	David O'Brien <obrien@FreeBSD.org> (slightly modified)
2009-01-12 21:30:36 +00:00

19 lines
603 B
Text

--- makefile.orig 2008-06-06 15:00:46.000000000 +0200
+++ makefile 2009-01-12 21:12:48.000000000 +0100
@@ -9,13 +9,13 @@
ifneq (,$(findstring darwin,$(OSTYPE)))
OS_CCDEFS = -D_GNU_SOURCE
else
- OS_CCDEFS = -lrt -lm -D_GNU_SOURCE
+ OS_CCDEFS = -lm -D_GNU_SOURCE
endif
endif
- CC = gcc -std=c99 -U__STRICT_ANSI__ -g $(OS_CCDEFS) -I .
+ CC += ${CFLAGS} $(OS_CCDEFS) -I .
ifeq ($(USE_NETWORK),)
else
- NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include /usr/local/lib/libpcap.a
+ NETWORK_OPT = -DUSE_NETWORK -lpcap
endif
else
#Win32 Environments