Added missing URL
[openwrt.git] / openwrt / package / vpnc / patches / 01-cross.patch
1 diff -ruN vpnc-0.3.3-old/Makefile vpnc-0.3.3-new/Makefile
2 --- vpnc-0.3.3-old/Makefile 2005-05-01 22:30:35.000000000 +0200
3 +++ vpnc-0.3.3-new/Makefile 2005-12-13 17:23:26.000000000 +0100
4 @@ -23,25 +23,26 @@
5 MANDIR=$(PREFIX)/share/man
6
7 CC=gcc
8 -CFLAGS=-W -Wall -O -g '-DVERSION="$(shell cat VERSION)"' $(shell libgcrypt-config --cflags)
9 -LDFLAGS=-g $(shell libgcrypt-config --libs)
10 +CFLAGS=-W -Wall -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include $(OFLAGS) '-DVERSION="$(shell cat VERSION)"' $(shell libgcrypt-config --cflags)
11 +LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib $(shell libgcrypt-config --libs)
12
13 -ifeq ($(shell uname -s), Linux)
14 +OS=$(shell uname -s)
15 +ifeq ($(OS), Linux)
16 SYSDEP=sysdep-linux.o
17 endif
18 -ifeq ($(shell uname -s), FreeBSD)
19 +ifeq ($(OS), FreeBSD)
20 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN
21 SYSDEP=sysdep-bsd.o
22 endif
23 -ifeq ($(shell uname -s), NetBSD)
24 +ifeq ($(OS), NetBSD)
25 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN
26 SYSDEP=sysdep-bsd.o
27 endif
28 -ifeq ($(shell uname -s), OpenBSD)
29 +ifeq ($(OS), OpenBSD)
30 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN -DNEED_IPLEN_FIX -DNEW_TUN
31 SYSDEP=sysdep-bsd.o
32 endif
33 -ifeq ($(shell uname -s), SunOS)
34 +ifeq ($(OS), SunOS)
35 CFLAGS += -DNEED_IPLEN_FIX
36 LDFLAGS += -lnsl -lresolv -lsocket
37 SYSDEP=sysdep-svr4.o
This page took 0.044281 seconds and 5 git commands to generate.