Powder hardening: was re: Request Package Review
-----BEGIN PGP SIGNED MESSAGE-----
I've been working on the Powder package with intention to adopt. I'm
doing the hardening bit, where the previous package was never hardened.
I've updated the rules file to be more dh(1) like so;
# Uncomment this to turn on verbose mode.
bash -ex ./buildall.sh
rm -f *.o */*.o */*/*.o rooms/*.cpp rooms/allrooms.h gfx/*.c gfx/*/*.c
rm -f license.cpp glbdef.cpp glbdef.h encyclopedia.cpp encyclopedia.h
rm -f credits.cpp gfx/akoi3x/sprite16_3x.bmp
rm -f powder port/linux/powder support/bmp2c/bmp2c
support/map2c/map2c support/tile2c/tile2c support/txt2c/txt2c
As you can see the build is performed by a script that comes with the
source. The script supports multiple platforms (GBA, Windows etc). How
do I pass hardening CXXFLAGS into it though? If I export in the rules
file they don't transfer to the script. Should I patch the script to
include the flags or is there a way to do pass them from rule? Here's
a snippet from the start of the script where is catchs CXXFLAGS. The
makefile under the ports/linux folder catches LDFLAGS ok.
if [ -z "$CXXFLAGS" ]; then
....the off to build.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----