14c1a8db5f
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6526 3c298f89-4303-0410-b956-a3cf2f4a3e73
29 lines
976 B
Diff
29 lines
976 B
Diff
diff -Nur vpnc-0.4.0/Makefile vpnc-0.4.0.patched/Makefile
|
|
--- vpnc-0.4.0/Makefile 2007-02-19 21:51:12.000000000 +0100
|
|
+++ vpnc-0.4.0.patched/Makefile 2007-02-25 10:40:25.000000000 +0100
|
|
@@ -20,7 +20,7 @@
|
|
# $Id: Makefile 148 2007-02-19 20:51:14Z Maurice Massar $
|
|
|
|
DESTDIR=
|
|
-PREFIX=/usr/local
|
|
+PREFIX=/usr
|
|
ETCDIR=/etc/vpnc
|
|
BINDIR=$(PREFIX)/bin
|
|
SBINDIR=$(PREFIX)/sbin
|
|
@@ -35,12 +35,11 @@
|
|
RELEASE_VERSION := $(shell cat VERSION)
|
|
|
|
CC=gcc
|
|
-CFLAGS += -W -Wall -O3 -Wmissing-declarations -Wwrite-strings -g
|
|
+CFLAGS += -W -Wall -Wmissing-declarations -Wwrite-strings -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include $(OFLAGS) '-DVERSION="$(shell cat VERSION)"'
|
|
CPPFLAGS = -DVERSION=\"$(VERSION)\"
|
|
-LDFLAGS = -g $(shell libgcrypt-config --libs)
|
|
-CFLAGS += $(shell libgcrypt-config --cflags)
|
|
+LDFLAGS = -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lgcrypt -lgpg-error
|
|
|
|
-ifeq ($(shell uname -s), SunOS)
|
|
+ifeq ($(OS), SunOS)
|
|
LDFLAGS += -lnsl -lresolv -lsocket
|
|
endif
|
|
|