Skip to content

Commit a4f151f

Browse files
committed
Merge pull request #4704
54c7df8 build: Fix boost build on some platforms (Cory Fields)
2 parents fad23a2 + 54c7df8 commit a4f151f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/m4/ax_boost_base.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ if test "x$want_boost" = "xyes"; then
112112
;;
113113
esac
114114
115+
dnl some arches may advertise a cpu type that doesn't line up with their
116+
dnl prefix's cpu type. For example, uname may report armv7l while libs are
117+
dnl installed to /usr/lib/arm-linux-gnueabihf. Try getting the compiler's
118+
dnl value for an extra chance of finding the correct path.
119+
libsubdirs="lib/`$CXX -dumpmachine 2>/dev/null` $libsubdirs"
120+
115121
dnl first we check the system location for boost libraries
116122
dnl this location ist chosen if boost libraries are installed with the --layout=system option
117123
dnl or if you install boost with RPM

0 commit comments

Comments
 (0)