1 diff -Nur vpnc-0.4.0/Makefile vpnc-0.4.0.patched/Makefile
2 --- vpnc-0.4.0/Makefile 2007-02-19 21:51:12.000000000 +0100
3 +++ vpnc-0.4.0.patched/Makefile 2007-02-25 10:40:25.000000000 +0100
5 # $Id: Makefile 148 2007-02-19 20:51:14Z Maurice Massar $
12 SBINDIR=$(PREFIX)/sbin
14 RELEASE_VERSION := $(shell cat VERSION)
17 -CFLAGS += -W -Wall -O3 -Wmissing-declarations -Wwrite-strings -g
18 +CFLAGS += -W -Wall -Wmissing-declarations -Wwrite-strings -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include $(OFLAGS) '-DVERSION="$(shell cat VERSION)"'
19 CPPFLAGS = -DVERSION=\"$(VERSION)\"
20 -LDFLAGS = -g $(shell libgcrypt-config --libs)
21 -CFLAGS += $(shell libgcrypt-config --cflags)
22 +LDFLAGS = -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lgcrypt -lgpg-error
24 -ifeq ($(shell uname -s), SunOS)
26 LDFLAGS += -lnsl -lresolv -lsocket