Browse Source

Fix forcing -lstdc++ for libstarpu.a in simgrid MPI builds

Samuel Thibault 5 years ago
parent
commit
75e0a09902
1 changed files with 1 additions and 1 deletions
  1. 1 1
      configure.ac

+ 1 - 1
configure.ac

@@ -221,7 +221,7 @@ if test x$enable_simgrid = xyes ; then
 	if test x$enable_shared = xno ; then
 	if test x$enable_shared = xno ; then
 		# When linking statically, libtool does not realize we need libstdc++ for simgrid_cpp.cpp
 		# When linking statically, libtool does not realize we need libstdc++ for simgrid_cpp.cpp
 		SIMGRID_LIBS="$SIMGRID_LIBS -lstdc++"
 		SIMGRID_LIBS="$SIMGRID_LIBS -lstdc++"
-		LDFLAGS="$LDFLAGS -lstdc++"
+		LIBS="$LIBS -lstdc++"
 	fi
 	fi
 
 
 	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[