Skip to content

Commit efdfee4

Browse files
committed
build: fix detection of boost libs on multi-arch distros
Fixes #3219.
1 parent fb34be6 commit efdfee4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/m4/ax_boost_base.m4

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# and this notice are preserved. This file is offered as-is, without any
3434
# warranty.
3535

36-
#serial 21
36+
#serial 22
3737

3838
AC_DEFUN([AX_BOOST_BASE],
3939
[
@@ -97,6 +97,12 @@ if test "x$want_boost" = "xyes"; then
9797
;;
9898
esac
9999
100+
dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give
101+
dnl them priority over the other paths since, if libs are found there, they
102+
dnl are almost assuredly the ones desired.
103+
AC_REQUIRE([AC_CANONICAL_HOST])
104+
libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
105+
100106
dnl first we check the system location for boost libraries
101107
dnl this location ist chosen if boost libraries are installed with the --layout=system option
102108
dnl or if you install boost with RPM

0 commit comments

Comments
 (0)