diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-12-15 12:55:38 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-12-15 12:55:38 +0000 |
commit | b4136fdf42d26e72bec79f6b0221baf089d9d810 (patch) | |
tree | e27962f8b32bc96c5eb1d214a150aa18a113bda8 /openwrt/package/vpnc/patches/01-cross.patch | |
parent | e695162bd56afa8b251fa05c321019d021411894 (diff) |
rename the patch to better match its purpose,
add target optimization cflags,
prevent host system detection to set compile-time options.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2688 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/vpnc/patches/01-cross.patch')
-rw-r--r-- | openwrt/package/vpnc/patches/01-cross.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/openwrt/package/vpnc/patches/01-cross.patch b/openwrt/package/vpnc/patches/01-cross.patch new file mode 100644 index 0000000000..4f27fbd005 --- /dev/null +++ b/openwrt/package/vpnc/patches/01-cross.patch @@ -0,0 +1,37 @@ +diff -ruN vpnc-0.3.3-old/Makefile vpnc-0.3.3-new/Makefile +--- vpnc-0.3.3-old/Makefile 2005-05-01 22:30:35.000000000 +0200 ++++ vpnc-0.3.3-new/Makefile 2005-12-13 17:23:26.000000000 +0100 +@@ -23,25 +23,26 @@ + MANDIR=$(PREFIX)/share/man + + CC=gcc +-CFLAGS=-W -Wall -O -g '-DVERSION="$(shell cat VERSION)"' $(shell libgcrypt-config --cflags) +-LDFLAGS=-g $(shell libgcrypt-config --libs) ++CFLAGS=-W -Wall -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include $(OFLAGS) '-DVERSION="$(shell cat VERSION)"' $(shell libgcrypt-config --cflags) ++LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib $(shell libgcrypt-config --libs) + +-ifeq ($(shell uname -s), Linux) ++OS=$(shell uname -s) ++ifeq ($(OS), Linux) + SYSDEP=sysdep-linux.o + endif +-ifeq ($(shell uname -s), FreeBSD) ++ifeq ($(OS), FreeBSD) + CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN + SYSDEP=sysdep-bsd.o + endif +-ifeq ($(shell uname -s), NetBSD) ++ifeq ($(OS), NetBSD) + CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN + SYSDEP=sysdep-bsd.o + endif +-ifeq ($(shell uname -s), OpenBSD) ++ifeq ($(OS), OpenBSD) + CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN -DNEED_IPLEN_FIX -DNEW_TUN + SYSDEP=sysdep-bsd.o + endif +-ifeq ($(shell uname -s), SunOS) ++ifeq ($(OS), SunOS) + CFLAGS += -DNEED_IPLEN_FIX + LDFLAGS += -lnsl -lresolv -lsocket + SYSDEP=sysdep-svr4.o |