From: Pieter Lexis Date: Fri, 18 Mar 2016 08:25:29 +0000 (+0100) Subject: Add -latomic to LDFLAGS on mips(el) X-Git-Tag: dnsdist-1.0.0-beta1~83^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef43da0081fc3c4cdb3565285a8e80d78a89dfa9;p=pdns Add -latomic to LDFLAGS on mips(el) Closes #3486 --- diff --git a/m4/pdns_check_os.m4 b/m4/pdns_check_os.m4 index 3192d1749..d18f6ebb3 100644 --- a/m4/pdns_check_os.m4 +++ b/m4/pdns_check_os.m4 @@ -35,6 +35,12 @@ AC_DEFUN([PDNS_CHECK_OS],[ AM_CONDITIONAL([HAVE_LINUX], [test "x$have_linux" = "xyes"]) AM_CONDITIONAL([HAVE_SOLARIS], [test "x$have_solaris" = "xyes"]) + case "$host" in + mips*) + LDFLAGS="-latomic $LDFLAGS" + ;; + esac + AC_SUBST(THREADFLAGS) AC_SUBST([DYNLINKFLAGS], [-export-dynamic]) ])