On Thu, 4 Jun 2015, Ilya Enkovich wrote: > 2015-06-03 18:59 GMT+03:00 Joseph Myers <jos...@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 jos...@codesourcery.com