diff options
author | Ilya Enkovich <ilya.enkovich@intel.com> | 2015-03-10 09:37:41 +0000 |
---|---|---|
committer | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2015-03-10 09:37:41 +0000 |
commit | 5373cd33a8cdb54a31bc7bf2ae4c9903efa4911c (patch) | |
tree | 4c3d129c804e483567ad1709e6159edb9e847d6e /gcc/config/i386/linux-common.h | |
parent | 5a434178855e784d2667d68f0acf3c01bf48e847 (diff) | |
download | gcc-5373cd33a8cdb54a31bc7bf2ae4c9903efa4911c.zip gcc-5373cd33a8cdb54a31bc7bf2ae4c9903efa4911c.tar.gz gcc-5373cd33a8cdb54a31bc7bf2ae4c9903efa4911c.tar.bz2 |
Makefile.def: Add libmpx.
* Makefile.def: Add libmpx.
* configure.ac: Add libmpx.
* Makefile.in: Regenerate.
* configure: Regenerate.
gcc/
* config/i386/linux-common.h (LIBMPX_LIBS): New.
(LIBMPX_SPEC): New.
(CHKP_SPEC): New.
* gcc.c (CHKP_SPEC): New.
(LINK_COMMAND_SPEC): Add CHKP_SPEC.
* c-family/c.opt (static-libmpx): New.
libmpx/
Initial commit.
From-SVN: r221311
Diffstat (limited to 'gcc/config/i386/linux-common.h')
-rw-r--r-- | gcc/config/i386/linux-common.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/config/i386/linux-common.h b/gcc/config/i386/linux-common.h index f93d71d..868274f 100644 --- a/gcc/config/i386/linux-common.h +++ b/gcc/config/i386/linux-common.h @@ -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 |