From bb4bed8545c1bd57ee54202fafa97c3c90001af0 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Thu, 18 Aug 2005 23:08:19 +0000 Subject: Changes to allow compilation with GCC-4.1.0. --- package/openvpn/openvpn.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'package/openvpn') 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 -- cgit v1.2.3