Re: Testing for unknown flags in different compilers

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

 



Hi Julie



>>> I have been working on a changes whereby an autoconf
>>> user can invoke a macro like
>>>
>>> AC_WARN_ADD([-Wextra])

The point is the portability. Your flags (-Wextra) depend on the actual compiler. This js against the philosophy behind autoconf, which tries to abstract from it.

If wanted, a developper always can add additional specific compiler flags during runtime by specifying them via CFLAGS on command line.

What would be required is a general macro AC_EXTRA_WARNINGS without arguments which could resolve to the actually current arguments of the tool.

Carsten


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://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