Building on a fresh OpenBSD system, 'scons test' failed trying to install libhammer.a to /usr/local/lib.
However, scons prefix=/usr test works fine.
Prepending '.' to LIBPATH instead of appending it makes it work so that's what this patch changes.
A guess at what's happening is that on a typical Linux everything lives in /usr and LIBPATH will be empty, so Append and Prepend do the same. This BSD has libglib-2.0.a in /usr/local/lib so it pulls that into LIBPATH.
The above doesn't really explain why prefix=/usr avoids the issue, though...
Building on a fresh OpenBSD system, 'scons test' failed trying to install
libhammer.a
to/usr/local/lib
. However,scons prefix=/usr test
works fine.Prepending
'.'
to LIBPATH instead of appending it makes it work so that's what this patch changes.A guess at what's happening is that on a typical Linux everything lives in
/usr
and LIBPATH will be empty, so Append and Prepend do the same. This BSD haslibglib-2.0.a
in/usr/local/lib
so it pulls that into LIBPATH.The above doesn't really explain why
prefix=/usr
avoids the issue, though...