Developing on OpenBSD
Because curl is an autotools project, which itself is deeply integrated into the GNU operating system, using it may not be that obvious on a different Unix-like system. This page aims to collect notes and hints to keep in mind, when using OpenBSD as a development platform for curl.
It is primarily the work of Emil Engler, who is, according to himself, a very stubborn person in the usage of his tools, although edits are much appreciated as this is an editable wiki :-)
Before you can develop curl, you'll have to install the tools required for autotools.
pkg_add autotools # Pick 2.69
pkg_add automake # Pick 1.16
pkg_add libtool
After this, you need to set a few environment variables specifying versions.
Append these lines to your ~/.profile
file.
export AUTOCONF_VERSION=2.69
export AUTOMAKE_VERSION=1.16
When building curl with --enable-debug
, be sure to use the OpenBSD version of libtool (found at /usr/bin/libtool
) instead of the GNU version, which you must install from ports for whatever reason, as it is broken.
autoreconf -fi
./configure --enable-debug
make LIBTOOL=/usr/bin/libtool -j4