I have a package with:
$ apt-get source <pkg-name>
and now I'm trying to build it with:
$ dpkg-buildpackage -uc -us -j8
At the beginning of the output is indicated:
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2 dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
I would like to redefine these CFLAGS (also, LDFLAGS). I tried to export CFLAGS envvar, just as we do with simple setup, to no avail. How can I override these values?
lvella
source share