[MOAB-dev] r4284 - in MOAB/trunk: . config

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Nov 18 16:47:18 CST 2010


Author: kraftche
Date: 2010-11-18 16:47:18 -0600 (Thu, 18 Nov 2010)
New Revision: 4284

Modified:
   MOAB/trunk/config/compiler.m4
   MOAB/trunk/configure.ac
Log:
strip -lgcc_s, -lm, and -lc from C++ runtime libs list rename ITAPS_LIBTOOL_VAR as FATHOM_LIBTOOL_VAR

Modified: MOAB/trunk/config/compiler.m4
===================================================================
--- MOAB/trunk/config/compiler.m4	2010-11-18 22:46:03 UTC (rev 4283)
+++ MOAB/trunk/config/compiler.m4	2010-11-18 22:47:18 UTC (rev 4284)
@@ -5,7 +5,7 @@
 #  libtool variable name
 #  variable in which to store result
 #######################################################################################
-AC_DEFUN([ITAPS_LIBTOOL_VAR], [
+AC_DEFUN([FATHOM_LIBTOOL_VAR], [
   echo "SED=$SED" > .tmp
   ./libtool --tag=$1 --config >>.tmp
   echo "echo \$$2" >> .tmp

Modified: MOAB/trunk/configure.ac
===================================================================
--- MOAB/trunk/configure.ac	2010-11-18 22:46:03 UTC (rev 4283)
+++ MOAB/trunk/configure.ac	2010-11-18 22:47:18 UTC (rev 4284)
@@ -257,11 +257,26 @@
 ################################################################################
 #                              Extract libtool config
 ################################################################################
-ITAPS_LIBTOOL_VAR( [CXX], [compiler_lib_search_path], [MOAB_CXX_LINKFLAGS])
-ITAPS_LIBTOOL_VAR( [CXX], [postdeps], [MOAB_CXX_LIBS])
+FATHOM_LIBTOOL_VAR( [CXX], [compiler_lib_search_path], [MOAB_CXX_LINKFLAGS])
+FATHOM_LIBTOOL_VAR( [CXX], [postdeps], [MOAB_CXX_LIBS_TMP])
+MOAB_CXX_LIBS=
+for lib in $MOAB_CXX_LIBS_TMP; do
+  case $lib in
+    -lgcc_s)
+      ;;
+    -lm)
+      ;;
+    -lc)
+      ;;
+    *)
+      MOAB_CXX_LIBS="$MOAB_CXX_LIBS $lib"
+      ;;
+  esac
+done
 AC_SUBST(MOAB_CXX_LINKFLAGS)
 AC_SUBST(MOAB_CXX_LIBS)
 
+
 ################################################################################
 #                             System Headers
 ################################################################################






More information about the moab-dev mailing list