Ticket #20978: patch-src__tun__Makefile.2

File patch-src__tun__Makefile.2, 775 bytes (added by jdswinbank (John Swinbank), 15 years ago)
Line 
1--- src/tun/Makefile.orig       2009-09-09 09:28:12.000000000 -0400
2+++ src/tun/Makefile    2009-09-09 09:30:24.000000000 -0400
3@@ -21,11 +21,13 @@
4 
5 INCLUDE = -I.. -I/System/Library/Frameworks/Kernel.framework/Headers
6 CFLAGS = -Wall -mkernel -force_cpusubtype_ALL \
7-       -fno-builtin -fno-stack-protector -arch ppc -arch i386 -arch x86_64 \
8+       -fno-builtin -fno-stack-protector -arch i386 -arch x86_64 \
9+  __CFLAGS__ \
10        -DKERNEL -D__APPLE__ -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"$(TUNTAP_VERSION)\" \
11        -DTUN_KEXT_VERSION=\"$(TUN_KEXT_VERSION)\"
12 CCFLAGS = $(CFLAGS)
13-LDFLAGS = -Wall -mkernel -nostdlib -r -lcc_kext -arch ppc -arch i386 -arch x86_64
14+LDFLAGS = -Wall -mkernel -nostdlib -r -lcc_kext -arch i386 -arch x86_64 -Xlinker -kext \
15+          __CFLAGS__
16 
17 CCP = g++
18 CC = gcc