[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_nativejava and hardening ?



On Tue, May 14, 2013 at 10:56 AM, Mathieu Malaterre <malat@debian.org> wrote:
> Does anyone know how to activate hardening flags in dh_nativejava ?
>
> I tried:
>
> $ cat debian/rules
> [...]
> AOT_GCJFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
> AOT_LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

For reference this actually works, simply do:

export AOT_GCJFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
export AOT_LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

Also see #708375 for a JFLAGS equivalent to CFLAGS (without -Wformat).

2cts


Reply to: