summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-06-10 21:42:30 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-06-10 21:42:30 +0200
commit58f46acfc2d221f546f1d3957c4e078142597ebf (patch)
tree02d38a04cea97b68f9686994cc7f5e3466dc86df
parent50329ba33d82bc4a38ef96824c60be2fd95c119b (diff)
fix cross-compile
-rw-r--r--package/pptpd/Makefile2
-rw-r--r--package/pptpd/patches/patch-Makefile_in4
2 files changed, 3 insertions, 3 deletions
diff --git a/package/pptpd/Makefile b/package/pptpd/Makefile
index 13ea21a66..fdd823144 100644
--- a/package/pptpd/Makefile
+++ b/package/pptpd/Makefile
@@ -17,7 +17,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,PPTPD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-TCFLAGS+= -DSBINDIR=\\\"/usr/sbin\\\"
+TCFLAGS+= -fPIC -DSBINDIR='\\\"/usr/sbin\\\"'
FAKE_FLAGS+= INSTALL="install"
post-install:
diff --git a/package/pptpd/patches/patch-Makefile_in b/package/pptpd/patches/patch-Makefile_in
index 23a5b8420..c7a39c493 100644
--- a/package/pptpd/patches/patch-Makefile_in
+++ b/package/pptpd/patches/patch-Makefile_in
@@ -1,11 +1,11 @@
--- pptpd-1.3.4.orig/Makefile.in 2007-04-16 03:10:27.000000000 +0200
-+++ pptpd-1.3.4/Makefile.in 2010-05-29 18:48:12.250000000 +0200
++++ pptpd-1.3.4/Makefile.in 2010-06-10 10:55:01.421440719 +0200
@@ -104,7 +104,7 @@ AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
-CFLAGS = -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"'
-+CFLAGS = -Wall -DSBINDIR='"$(sbindir)"'
++CFLAGS ?= -Wall -DSBINDIR='"$(sbindir)"'
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@