2007-02-26 22:01:03 +00:00
|
|
|
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 $
|
2006-08-11 17:03:24 +00:00
|
|
|
|
|
|
|
DESTDIR=
|
|
|
|
-PREFIX=/usr/local
|
|
|
|
+PREFIX=/usr
|
|
|
|
ETCDIR=/etc/vpnc
|
2007-02-26 22:01:03 +00:00
|
|
|
BINDIR=$(PREFIX)/bin
|
2006-08-11 17:03:24 +00:00
|
|
|
SBINDIR=$(PREFIX)/sbin
|
2007-02-26 22:01:03 +00:00
|
|
|
@@ -35,12 +35,11 @@
|
|
|
|
RELEASE_VERSION := $(shell cat VERSION)
|
2006-08-11 17:03:24 +00:00
|
|
|
|
|
|
|
CC=gcc
|
2007-02-26 22:01:03 +00:00
|
|
|
-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
|
2006-08-11 17:03:24 +00:00
|
|
|
|
|
|
|
-ifeq ($(shell uname -s), SunOS)
|
|
|
|
+ifeq ($(OS), SunOS)
|
|
|
|
LDFLAGS += -lnsl -lresolv -lsocket
|
2007-02-26 22:01:03 +00:00
|
|
|
endif
|
|
|
|
|