Permalink
Browse files

Fix compilation on Solaris (get the -L before the -l)

Change-Id: I6e402b89c66d04e02a71bc89986a19ea76955883
  • Loading branch information...
1 parent 1b2ed22 commit a191e6c348ec73487dceaecc1c5a76c85b750bdb @trondn trondn committed May 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 configure.ac
View
@@ -5,7 +5,7 @@ AC_CONFIG_FILES([Makefile])
AC_PROG_CC
AC_PROG_LIBTOOL
-AC_CHECK_LIB([sigar], [main], [SIGAR_LDFLAGS=-lsigar], [
+AC_CHECK_LIB([sigar], [main], [SIGAR_LDFLAGS="${LDFLAGS} -lsigar"], [
mylibdir=`eval echo ${libdir}`
AS_IF([test "x${mylibdir}" = "xNONE/lib"],
[ mylibdir="${prefix}/lib"])

0 comments on commit a191e6c

Please sign in to comment.