diff options
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 |
commit | bb4bed8545c1bd57ee54202fafa97c3c90001af0 (patch) | |
tree | eae2fb2e5dc248f0e798d791efdcf72f0a9fdfdd /package/openvpn | |
parent | bd00131051a6243939f0b28ae0ae3244b67bd539 (diff) | |
download | buildroot-novena-bb4bed8545c1bd57ee54202fafa97c3c90001af0.tar.gz buildroot-novena-bb4bed8545c1bd57ee54202fafa97c3c90001af0.zip |
Changes to allow compilation with GCC-4.1.0.
Diffstat (limited to 'package/openvpn')
-rw-r--r-- | package/openvpn/openvpn.mk | 11 |
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 |