I wish to install OpenVPN on OpenBSD 5.5 using OpenVPN source tarball.
According to the instructions here, I have to install lzo
and
add
CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
directives to "configure", sincegcc
will not find them otherwise.
I have googled extensively for guide on how to do the above on OpenBSD but there is none.
This is what I plan to do:
- Untar the source tarball to a freshly created directory
- Issue the command
./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
- Issue the command
make
- Issue the command
make install
Which of the following syntax is correct?
./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
or
./configure --CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
or
./configure --CFLAGS="-I/usr/local/include" --LDFLAGS="-L/usr/local/lib"
gcc-4.2.1
(unless you're on really old machines like vaxen) is incomp55.tgz
. There are packages forgcc-4.8
and4.9
, and alsollvm/clang 3.0
. The former aren't included mainly for licensing reasons (GPLv2 vs GPLv3), the latter isn't used because it doesn't support all the platforms that OpenBSD currently supports. – damien Aug 09 '14 at 10:50echo $CPATH
and so on. – vinc17 Aug 09 '14 at 11:58grep CFLAGS configure
returns blank from that configure script). – sdaau Sep 27 '15 at 20:03LD_LIBRARY_PATH
: http://xahlee.info/UnixResource_dir/_/ldpath.html. – skalee Mar 22 '19 at 21:11
– Pierre Thibault Mar 27 '20 at 18:22./configure CFLAGS="-I/usr/local/include -I/usr/local/include2" LDFLAGS="-L/usr/local/lib -L/usr/local/lib2"