Oh sorry, I thought you were talking about the standard openjdk build, --with-extra-cflags is a configure option.
Kind Regards, Thomas On Wed, Jul 19, 2017 at 2:38 PM, Jonny Heggheim <heg...@gmail.com> wrote: > Hi Thomas! > > On 19 July 2017 at 14:18, Thomas Stüfe <thomas.stu...@gmail.com> wrote: > > You can pass extra CFLAGS with option --with-extra-cflags. > > Thanks for your suggestion, do you know where I can find documentation > for this feature? > > I got this error on Gradle 2.13: > $ gradle --with-extra-cflags '-O2 -g -pipe -Wall > -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector-strong --param=ssp-buffer-size=4 > -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > -m64 -mtune=generic' > > Unknown command-line option '--with-extra-cflags'. > > USAGE: gradle [option...] [task...] > > > Jonny >