I try CFLAGS+="-g -O6" dpkg-buildpackage -us -uc, but I see -g -O2 when package builds.debian/rules
%:
dh $@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
set CXXFLAGS for dpkg-buildpackage
set CXXFLAGS for dpkg-buildpackage
Could you please explain me how can i set CXXFLAGS from the environment for dpkg-buildpackage.
Re: set CXXFLAGS for dpkg-buildpackage
Can't help you much with compiler flags, but in a rules file, the environment stuff must go before the first target. Also the white-space needs to be correctly formatted. Recipes need a single leading tab. Make sure there is a empty/blank line right at the end. Start by trying this instead;
Code: Select all
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
%:
dh $@
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: set CXXFLAGS for dpkg-buildpackage
I'm pretty sure you just add to the rules fileL
debian/rules
debian/rules
Code: Select all
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CXXFLAGS=-g -O6
%:
dh $@
MX Linux packager and developer
Re: set CXXFLAGS for dpkg-buildpackage
for automake(1) or typical Makefile one can use:
export CXXFLAGS="foo"
(which is used where appropriate not necessarily everywhere)
likely debian should consume the same
export CXXFLAGS="foo"
(which is used where appropriate not necessarily everywhere)
likely debian should consume the same