Pārlūkot izejas kodu

we really need to specify libfxt.a, pkg-config would never show this. Still keep pkg-config's --libs output to get -lrt -lbfd, but use --as-needed to avoid a spurious libfxt dynamic link

Samuel Thibault 8 gadi atpakaļ
vecāks
revīzija
b4ed5c0f1f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      configure.ac

+ 1 - 1
configure.ac

@@ -1617,7 +1617,7 @@ if test x$use_fxt = xyes; then
 	if test x$enable_simgrid = xyes -a x$enable_shared = xno ; then
                 # simgrid's SMPI needs fxt to be linked in statically for
                 # variable privatization to work
-		FXT_LIBS="$(pkg-config --libs --static fxt)"
+		FXT_LIBS="$(pkg-config --variable=libdir fxt)/libfxt.a -Wl,--push-state,--as-needed $(pkg-config --libs --static fxt) -Wl,--pop-state"
 	fi
 
         AC_ARG_ENABLE(paje-codelet-details, [AS_HELP_STRING([--enable-paje-codelet-details],