> On 22 окт. 2015 г., at 14:12, Marcus Rueckert <da...@web.de> wrote: > > On 2015-10-22 13:59:09 +0300, Dmitry Sivachenko wrote: >>> On 22 окт. 2015 г., at 13:54, Marcus Rueckert <da...@web.de> wrote: >>> >>> On 2015-10-22 13:38:45 +0300, Dmitry Sivachenko wrote: >>>> I see this warnings with gcc-4.2.1 (shipped with FreeBSD-9), but no >>>> warnings with clang 3.6.1. >>>> I see a lot of such warnings with gcc48, but it seems expected according >>>> to comments in Makefile: >>>> #### Compiler-specific flags that may be used to disable some negative >>>> over- >>>> # optimization or to silence some warnings. -fno-strict-aliasing is needed >>>> with >>>> # gcc >= 4.4. >>> >>> 4.3.4 on SLES 11 SP 4 >>> 4.8.3 on openSUSE 13.2 >>> 5.1.1 on openSUSE Tumbleweed >>> >>> https://build.opensuse.org/package/show/server:http/haproxy (succeeded >>> links on the right side) >> >> >> There is -fno-strict-aliasing option in your build logs. > > But it is set by the upstream Makefile. so unless you break the CFLAGS > of the makefile. shouldnt you have that too? >
I override CFLAGS variable during make invocation (because otherwise build system does not respect CFLAGS environment variable), as well as CC environment (FreeBSD does not have "gcc" at all).