]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
added support of compiling against static libstdc++
authorAdrian Chiris <adrianc@mellanox.com>
Thu, 2 Apr 2015 14:22:22 +0000 (17:22 +0300)
committerAdrian Chiris <adrianc@mellanox.com>
Thu, 2 Apr 2015 14:22:22 +0000 (17:22 +0300)
configure.ac
mstflint.spec.in

index 59611e102be80e06036b1753ad595426c6b08e73..f76c2fff527d58d73fd05f4dff09f419f12c059b 100644 (file)
@@ -47,6 +47,13 @@ fi
 
 AM_CONDITIONAL(ENABLE_INBAND, [test  "x$enable_inband" = "xyes"])
 
+AC_ARG_ENABLE([static_libstdcpp],
+    AS_HELP_STRING([--enable-static-libstdcpp], [Enable link static to libstdc++]))
+
+AS_IF([test "x$enable_static_libstdcpp" = "xyes"], [
+  CXXFLAGS="$CXXFLAGS -static-libstdc++"
+])
+
 CFLAGS="$CFLAGS -Werror -DMST_UL"
 CXXFLAGS="$CXXFLAGS -Werror -DMST_UL"
 
index e415566bb189e27764569421c8dde160742f1afb..f0413eb4b0b5660f8cdf6bd1b9d53b350d6ffcb6 100644 (file)
@@ -43,7 +43,7 @@ for network adapters based on Mellanox Technologies chips.
 %endif
 
 %if %{buildtype} == "ppc64"
-    config_flags="$config_flags --host=ppc64-linux"
+    config_flags="$config_flags --host=ppc64-linux --enable-static-libstdcpp=yes"
 %endif
 
 %if %{buildtype} == "ppc64le"