make/autoconf/flags-ldflags.m4
changeset 51839 ab54a4d61d7f
parent 51814 43668e3cae4d
child 52351 0ecb4e520110
--- a/make/autoconf/flags-ldflags.m4	Fri Sep 21 12:08:13 2018 -0700
+++ b/make/autoconf/flags-ldflags.m4	Fri Sep 21 21:35:12 2018 +0200
@@ -139,6 +139,14 @@
     fi
   fi
 
+  # Setup warning flags
+  if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
+    LDFLAGS_WARNINGS_ARE_ERRORS="-Wl,-z,fatal-warnings"
+  else
+    LDFLAGS_WARNINGS_ARE_ERRORS=""
+  fi
+  AC_SUBST(LDFLAGS_WARNINGS_ARE_ERRORS)
+
   # Setup LDFLAGS for linking executables
   if test "x$TOOLCHAIN_TYPE" = xgcc; then
     EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -Wl,--allow-shlib-undefined"