Control: severity -1 wishlist Control: tags -1 - patch Hi!
On Wed, 2013-05-15 at 14:30:08 +0200, Mathieu Malaterre wrote: > Package: dpkg-dev > Version: 1.16.9~bpo60+1 > Severity: normal > Tags: patch > > Currently it is not possible to retrieve hardening flags when doing gcj > compilation (eg. dh_nativejava call). > > Instead one has to do: > > # hardening > CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) > LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) > > # pass compile option to gcj: > # CPPFLAGS is not use, since leads to: > # gcj: can't specify '-D' without '--main' > export AOT_GCJFLAGS=$(CFLAGS) > export AOT_LDFLAGS=$(LDFLAGS) > > > which leads to compilation warning: > > /usr/bin/gcj -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Werror=format-security -fsource-filename=/tmp/filephB4aY -g -O2 -fPIC > -findirect-dispatch -fjni saxon-jdom-6.5.5.jar.1.jar -o > saxon-jdom-6.5.5.jar.1.o > /usr/bin/gcj-dbtool -n saxon-jdom-6.5.5.jar.db 64 > jc1: warning: command line option "-Wformat" is valid for C/C++/ObjC/ObjC++ > but not for Java > > > It would be nice to have a JFLAGS which contains CFLAGS, without -Wformat Thanks, I'll check out the precedent naming convention and possible uses, and will be including something like this in 1.17.0. Regards, Guillem -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org