]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/i386/linux-common.h
Makefile.def: Add libmpx.
[thirdparty/gcc.git] / gcc / config / i386 / linux-common.h
index f93d71d3ead0f4a65f969e8ff3af0105b12b0eb9..868274f2ea05bc4098547ea040fe65ac39f2c7e6 100644 (file)
@@ -53,3 +53,27 @@ along with GCC; see the file COPYING3.  If not see
                       GNU_USER_TARGET_ENDFILE_SPEC,     \
                       GNU_USER_TARGET_MATHFILE_SPEC " " \
                       ANDROID_ENDFILE_SPEC)
+
+#ifndef LIBMPX_LIBS
+#define LIBMPX_LIBS "\
+ %:include(libmpx.spec)%(link_libmpx)"
+#endif
+
+#ifndef LIBMPX_SPEC
+#if defined(HAVE_LD_STATIC_DYNAMIC)
+#define LIBMPX_SPEC "\
+%{mmpx:%{fcheck-pointer-bounds:\
+    %{static:--whole-archive -lmpx --no-whole-archive" LIBMPX_LIBS "}\
+    %{!static:%{static-libmpx:" LD_STATIC_OPTION " --whole-archive}\
+    -lmpx %{static-libmpx:--no-whole-archive " LD_DYNAMIC_OPTION \
+    LIBMPX_LIBS "}}}}"
+#else
+#define LIBMPX_SPEC "\
+%{mmpx:%{fcheck-pointer-bounds:-lmpx" LIBMPX_LIBS "}}"
+#endif
+#endif
+
+#ifndef CHKP_SPEC
+#define CHKP_SPEC "\
+%{!nostdlib:%{!nodefaultlibs:" LIBMPX_SPEC "}}"
+#endif