瀏覽代碼

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 年之前
父節點
當前提交
b4ed5c0f1f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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],