* Shawn Sörbom <sh...@sorbom.com>, 2016-04-23, 12:47:
In a debian/rules file, I have the variable
export DEB_BUILD_OPTIONS=noopt
You should never do that in debian/rules.
DEB_BUILD_OPTIONS is supposed to be set by the user who builds the
package.
but dpkg-buildflags --get CFLAGS returns
-g -O2 -fstack-protector-strong -Wformat -Werror=format-security
What am I doing wrong?
You didn't show us your debian/rules, so I'll have to guess:
If you use dpkg-buildflags within $(shell) then that's not affected by
environment variables set in the same makefile.
btw, the makefile in question has "-02" set in CFLAGS.
Do I need to patch it? I'm assuming no, but setting DEB_CFLAGS_STRIP =
-02
I think you meant "-O2", not "-02".
But again, DEB_<flag>_STRIP is supposed to be set by the user who builds
the package. You can use DEB_<flag>_MAINT_STRIP in debian/rules if you
really want to.
--
Jakub Wilk