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

Re: Enabling flags depending on buildd gcc version



On 18 June 2013 15:29, Franz Schrober <franzschrober@yahoo.de> wrote:
> Hi,
>
>
> is it possible with dh/debhelper to enabling specific compiler flags easily
> depending on the gcc-defaults package/gcc version? Problem is the GCC 4.8
> version which currently needs -fno-aggressive-loop-optimizations until some
> source code depending on some non-standard compliant behaviour are fixed. Just
> adding this to DEB_CFLAGS_MAINT_APPEND will cause build failures on
> architectures without GCC 4.8 (only used by default on amd64, armel, armhf,
> hurd-i386, i386, kfreebsd-amd64, kfreebsd-i386).
>
> I would like to avoid to write special autohell/cmake/custom configure tests
>

That's a job of configure scripts. testing compiler options is easy
and well supported / easy to add a new one using upstream's scripts.

Regards,

Dmitrijs.


Reply to: