[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Building on OpenBSD
From: |
Taylan Ulrich B. |
Subject: |
Building on OpenBSD |
Date: |
Fri, 03 Aug 2012 23:54:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (berkeley-unix) |
I wanted to note that, given a working boehm-gc (the next release, 7.2d,
should work on OpenBSD 5.1, but newer OpenBSD versions, having switched
to rthreads, will break it again), and a set of build flags similar to
the following (these are tied to my personal setup) should allow one to
build guile 2.0 (i tested .6) without any problems:
PKG_CONFIG_PATH="$HOME/usr/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"
LD_LIBRARY_PATH="$HOME/usr/lib:/usr/lib:/usr/local/lib"
CPPFLAGS="-I$HOME/usr/include -I/usr/include -I/usr/local/include"
LDFLAGS="-L$HOME/usr/lib -L/usr/lib -L/usr/local/lib"
LIBS="-lpthread -lffi"
LIBFFI_CFLAGS="$CPPFLAGS"
LIBFFI_LIBS="$LDFLAGS $LIBS"
The main issue is the need to set LIBFFI_(CFLAGS|LIBS) separately. The
others would perhaps seem natural to someone who's used to compiling
their software by hand. (I'm bad at it.)
The resulting build of 2.0.6, me being on OpenBSD 5.1 and using a
development snapshot of boehm-gc, passes all tests.
Regards,
Taylan
- Building on OpenBSD,
Taylan Ulrich B. <=