Overview

Request 573710 accepted

Make sure our compiler flags are honored.

Loading...

mrdocs's avatar

Looks good, except the compiler flags are wrong:

[ 22s] === Sat Feb 3 00:26:41 UTC 2018 === cc -O3 -fomit-frame-pointer -funroll-loops -pedantic -Wall -Wno-long-long -Wno-overlength-strings -Wno-unused-function -Wshadow -Wdeclaration-after-statement -Wwrite-strings -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wunused-value -Wunused-parameter -Wundef -fstack-protector-strong -fwrapv -fno-strict-overflow

Try adding %optflags, so the default compiler flags are inherited.

Otherwise, looks fine are ready for Factory.


Karol Babioch's avatar
author target maintainer

Could you check whether this is ok now, please? https://build.opensuse.org/request/show/573710


Karol Babioch's avatar
author target maintainer

What exactly is wrong about the compiler flags? Should I use optflags instead of smp_mflags, or in addition to it? Where can I read up on openSUSE's requirements in regards to CFLAGS?


Karol Babioch's avatar
author target maintainer

According to this 1 documentation CFLAGS is set to %optflags automatically, so I'm not sure what exactly to do here ...


Ismail Dönmez's avatar

My guess is Makefile just ignores CFLAGS, you can hopefully fix that.


Request History
Karol Babioch's avatar

kbabioch created request

Make sure our compiler flags are honored.


Ismail Dönmez's avatar

namtrac accepted request

lgtm

openSUSE Build Service is sponsored by