Преглед на файлове

Fix more simgrid-mc ldflags

Samuel Thibault преди 4 години
родител
ревизия
7d45d0c6e6
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 2 2
      configure.ac
  2. 1 0
      tests/model-checking/Makefile.am

+ 2 - 2
configure.ac

@@ -207,7 +207,6 @@ if test x$enable_simgrid = xyes ; then
 	# Oldies for compatibility with older simgrid
 	AC_CHECK_FUNCS([MSG_get_as_by_name MSG_zone_get_by_name MSG_environment_get_routing_root MSG_host_get_speed])
 	LIBS="${SAVED_LIBS}"
-	SIMGRID_LDFLAGS="$SIMGRID_LIBS -lsimgrid"
 
 	AC_DEFINE(STARPU_SIMGRID, [1], [Define this to enable simgrid execution])
 	# We won't bind or detect anything
@@ -226,6 +225,7 @@ if test x$enable_simgrid = xyes ; then
 		SIMGRID_LIBS="$SIMGRID_LIBS -lstdc++"
 		LIBS="$LIBS -lstdc++"
 	fi
+	SIMGRID_LDFLAGS="$SIMGRID_LIBS -lsimgrid"
 
 	# Simgrid 3.12 & 3.13 need -std=c++11 to be able to build anything in C++...
 	case \ $CXXFLAGS\  in
@@ -268,7 +268,7 @@ if test x$enable_simgrid = xyes ; then
 		AC_PATH_PROG([SIMGRID_MC], [simgrid-mc], [no], [$simgrid_dir/bin:$PATH])
 		LDFLAGS="$LDFLAGS -Wl,-znorelro -Wl,-znoseparate-code"
 		# libsimgrid needs to be linked from binaries themselves for MC to work
-		STARPU_EXPORTED_LIBS="$STARPU_EXPORTED_LIBS $SIMGRID_LIBS -lsimgrid"
+		STARPU_EXPORTED_LIBS="$STARPU_EXPORTED_LIBS $SIMGRID_LDFLAGS"
 	fi
 fi
 AM_CONDITIONAL(STARPU_SIMGRID_MC, test x$enable_simgrid_mc = xyes)

+ 1 - 0
tests/model-checking/Makefile.am

@@ -23,6 +23,7 @@ EXTRA_DIST =				\
 
 AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src -I$(top_builddir)/include -I$(top_srcdir)/include $(SIMGRID_CFLAGS)
 AM_LDFLAGS  = -Wl,-znorelro -Wl,-znoseparate-code
+LIBS += $(SIMGRID_LDFLAGS)
 
 noinst_PROGRAMS = \
 		  prio_list \