Revisión | 21fcaacbbd50f26f9db16e4cd890d9c9055779f4 (tree) |
---|---|
Tiempo | 2013-01-02 02:29:31 |
Autor | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Use AM_CPP/LDFLAGS to pass boost cpp/ld flags. #28588
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/automake@1225 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -47,4 +47,6 @@ OPENBLAS_INCLUDE_DIR=$(OPENBLAS_ROOT)/include | ||
47 | 47 | OPENBLAS_LIB_DIR=$(OPENBLAS_ROOT)/lib |
48 | 48 | AM_CPPFLAGS+= -I$(OPENBLAS_INCLUDE_DIR) |
49 | 49 | AM_LDFLAGS+= -L$(OPENBLAS_LIB_DIR) |
50 | +AM_CPPFLAGS+= $(BOOST_CPPLAGS) | |
51 | +AM_LDFLAGS+= $(BOOST_LDFLAGS) | |
50 | 52 | endif |
@@ -175,8 +175,6 @@ AC_CACHE_CHECK([whether ld accepts -rpath option],[molds_cv_ld_accepts_rpath], | ||
175 | 175 | |
176 | 176 | AS_IF([test x$molds_cv_ld_accepts_rpath == xyes], |
177 | 177 | [BOOST_LDFLAGS="$BOOST_LDFLAGS -Wl,-rpath=$BOOST_LIBDIR"]) |
178 | -CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" | |
179 | -LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" | |
180 | 178 | |
181 | 179 | AC_CHECK_HEADERS([boost/random.hpp],,[AC_MSG_FAILURE([Cannot find boost/random.hpp!])]) |
182 | 180 |