This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX


On Thu, 4 Jun 2015, Ilya Enkovich wrote:

> 2015-06-03 18:59 GMT+03:00 Joseph Myers <joseph@codesourcery.com>:
> > You could, for example, have
> >
> > #if SOMETHING
> > #define MSG "%nsome msg"
> > #else
> > #define MSG ""
> > #endif
> >
> > and have another spec using MSG - that should work.
> 
> In this case I should define SOMETHING in configure of gcc, not in
> configure of libmpx, right? But it would mean I check host linker, not
> target.

gcc/ configure tests on the linker generally test the build-x-target 
linker, which is required to have the same version and be configured the 
same as the host-x-target linker.  (The tests mustn't actually try to link 
anything, but they can e.g. see if a particular option is mentioned in 
--help output.  In general they also have version number checks for the 
case of an in-tree linker build.)

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]