tags 815371 + patch user debian-bsd@lists.debian.org usertags 815371 + kfreebsd thanks Hi, Andreas Beckmann wrote: > checking for exit in -lboost_system... no > checking for exit in -lboost_system... (cached) no > checking for exit in -lboost_system... (cached) no > configure: error: Could not link against boost_system ! From build-nox/config.log: | configure:5153: g++ -o conftest -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include -D_FORTIFY_SOURCE=2 -I/usr/include -L/usr/lib/x86_64-kfreebsd-gnu -Wl,-z,relro -Wl,--as-needed -L/usr/lib/x86_64-kfreebsd-gnu conftest.cpp -lboost_system -lexecinfo >&5 | /usr/bin/ld: cannot find -lexecinfo | collect2: error: ld returned 1 exit status This was due to a $host_os =~ *freebsd* detection wrongly matching on "kfreebsd" also. Patch attached. Thanks! Regards, -- Steven Chamberlain steven@pyro.eu.org
Subject: use -lexecinfo on FreeBSD, but not GNU/kFreeBSD From: Steven Chamberlain <steven@pyro.eu.org> Date: Sun, 21 Feb 2016 01:30:09 +0000 --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,7 @@ # Detect OS AC_MSG_CHECKING([whether OS is FreeBSD]) -AS_IF([expr "$host_os" : ".*freebsd.*" > /dev/null], +AS_IF([expr "$host_os" : "freebsd.*" > /dev/null], [AC_MSG_RESULT([yes]) LIBS="-lexecinfo $LIBS"], [AC_MSG_RESULT([no])]) --- a/configure +++ b/configure @@ -4248,7 +4248,7 @@ # Detect OS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5 $as_echo_n "checking whether OS is FreeBSD... " >&6; } -if expr "$host_os" : ".*freebsd.*" > /dev/null; then : +if expr "$host_os" : "freebsd.*" > /dev/null; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } LIBS="-lexecinfo $LIBS"
Attachment:
signature.asc
Description: Digital signature