Re: How can I test if the GNU or Sun linker is used?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Philip Herron <herron.philip@xxxxxxxxxxxxxx> writes:

> All you should really care about is making sure your environment has a
> compatible c compiler or whats needed and autoconf does that for you,
> with the prog_c macro then it inserts into the makefile etc. And you
> just have to make sure your code is compatible. I would discourage
> trying to over-think and separate what compilers, assemblers are being
> used to give warnings, because thats not what you want. You want
> autoconf to figure out your environment for you so you don't have to
> have complicated makefiles and options to build your program.

Usually this sort of problem comes up because one wants to pass flags
like -Bsymbolic -z defs --version-script=library.map to the linker, but
you have to know which linker you're using to know whether you can use
that syntax or -xldscope=symbolic or something else instead.

-- 
Russ Allbery (rra@xxxxxxxxxxxx)             <http://www.eyrie.org/~eagle/>


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux