summaryrefslogtreecommitdiff
path: root/package/openvpn/openvpn.mk
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-08-18 23:08:19 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-08-18 23:08:19 +0000
commitbb4bed8545c1bd57ee54202fafa97c3c90001af0 (patch)
treeeae2fb2e5dc248f0e798d791efdcf72f0a9fdfdd /package/openvpn/openvpn.mk
parentbd00131051a6243939f0b28ae0ae3244b67bd539 (diff)
Changes to allow compilation with GCC-4.1.0.
Diffstat (limited to 'package/openvpn/openvpn.mk')
-rw-r--r--package/openvpn/openvpn.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
index e50a3c0af..03279171a 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -13,6 +13,15 @@ OPENVPN_CAT:=zcat
OPENVPN_BINARY:=openvpn
OPENVPN_TARGET_BINARY:=usr/sbin/openvpn
+#
+# Select thread model.
+#
+ifeq ($(strip $(BR2_PTHREADS_NATIVE)),y)
+THREAD_MODEL="--enable-threads=posix"
+else
+THREAD_MODEL=--enable-pthread
+endif
+
$(DL_DIR)/$(OPENVPN_SOURCE):
$(WGET) -P $(DL_DIR) $(OPENVPN_SITE)/$(OPENVPN_SOURCE)
@@ -41,7 +50,7 @@ $(OPENVPN_DIR)/.configured: $(OPENVPN_DIR)/.unpacked
--mandir=/usr/man \
--infodir=/usr/info \
--program-prefix="" \
- --enable-pthread \
+ $(THREAD_MODEL) \
);
touch $(OPENVPN_DIR)/.configured