Skip to contentSkip to conversation

Passing custom configure flags to "generic" buildsystem?

Openvpn-devel In review Samuli Seppänen 3 participants 6 messages Apr 27, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

What is the recommended way of passing configure flags to the "generic" buildsystem? I'd like to cross-compile for win64 on Linux and have some features turned on.

Samuli

#1 lore raw

2012/4/27 Samuli Seppänen <[email protected]...>:

Quoted 7 lines

Hi,

What is the recommended way of passing configure flags to the "generic" buildsystem? I'd like to cross-compile for win64 on Linux and have some features turned on.

Samuli

Hello,

Just define the EXTRA_OPENVPN_CONFIG environment variable. Or I don't understand your question....

Alon.

#2 lore raw
Quoted 8 lines

2012/4/27 Samuli Seppänen <[email protected]...>:

Quoted 6 lines

Hi,

What is the recommended way of passing configure flags to the "generic" buildsystem? I'd like to cross-compile for win64 on Linux and have some features turned on.

Quoted 7 lines
Quoted 1 line

Samuli

Hello,

Just define the EXTRA_OPENVPN_CONFIG environment variable. Or I don't understand your question....

Alon.

Ok, so I assumed. Tried that already, and from build output it looks as if it's working:

--- snip ---
running CONFIG_SHELL=/bin/bash /bin/bash ./configure --prefix=/ --libdir=//lib --host=x86_64-w64-mingw32 --target= --build=x86_64-pc-linux-gnu --program-prefix='' --sbindir=/bin --enable-password-save
--- snip ---

However, the resulting binary gives "enable_password_save=false", and actually using a credentials file fails. I tried this a number of times, deleting "image-win64" directory each time.

Any ideas what could cause this?

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#3 lore raw

2012/4/27 Samuli Seppänen <[email protected]...>:

Quoted 25 lines
Quoted 8 lines

2012/4/27 Samuli Seppänen <[email protected]...>:

Quoted 6 lines

Hi,

What is the recommended way of passing configure flags to the "generic" buildsystem? I'd like to cross-compile for win64 on Linux and have some features turned on.

Quoted 7 lines
Quoted 1 line

Samuli

Hello,

Just define the EXTRA_OPENVPN_CONFIG environment variable. Or I don't understand your question....

Alon.

Ok, so I assumed. Tried that already, and from build output it looks as if it's working:

--- snip ---
running CONFIG_SHELL=/bin/bash /bin/bash ./configure --prefix=/ --libdir=//lib --host=x86_64-w64-mingw32 --target= --build=x86_64-pc-linux-gnu --program-prefix='' --sbindir=/bin --enable-password-save
--- snip ---

Quoted 5 lines

However, the resulting binary gives "enable_password_save=false", and actually using a credentials file fails. I tried this a number of times, deleting "image-win64" directory each time.

Any ideas what could cause this?

Reproduced.
I will check this out.

Alon.

#4 lore raw

PATCH 1/1 build: fix typo in --enable-save-password

---
 configure.ac |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
configure.ac +1 -0
index e808cb4..7140d17 100644
@@ -168,6 +168,7 @@ AC_ARG_ENABLE(
 AC_ARG_ENABLE(
 	[password-save],
 	[AS_HELP_STRING([--enable-password-save], [allow --askpass and --auth-user-pass passwords to be read from a file @<:@default=yes@:>@])],
+	,
 	[enable_password_save="no"]
 )
 
Signature · 1 line
1.7.3.4
#5 lore raw

Re: [Openvpn-devel] [PATCH] build: fix typo in --enable-save-password

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 4 lines · Alon Bar-Lev

configure.ac | 1 + 1 files changed, 1 insertions(+), 0
deletions(-)

ACK. Applied to master branch on -testing and -stable trees.

commit 8993847de727cf503bec58b41fbf0f71b9c617e7

Author: Alon Bar-Lev <[email protected]...>
Date:   Fri Apr 27 16:40:54 2012 +0300
    build: fix typo in --enable-save-password

    Signed-off-by: Alon Bar-Lev <[email protected]...>
    Acked-by: David Sommerseth <[email protected]...>
    Message-Id: [email protected]...
    URL: http://article.gmane.org/gmane.network.openvpn.devel/6371
    Signed-off-by: David Sommerseth <[email protected]...>

kind regards,

David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+bHHwACgkQDC186MBRfrpu/gCeM+nwqkIQM3An8CyoyhKE02JL E/sAnjLWlrofSdIbSR+GsBnfy/V4gDlK
=Vn1H
-----END PGP SIGNATURE-----