jdk8 extra c/cxx - flags settings
Dave Pointon
dpointo8 at linux.vnet.ibm.com
Fri Nov 22 13:34:08 UTC 2013
Hi Matthias ,
On Fri, 2013-11-22 at 12:55 +0000, Baesken, Matthias wrote:
> I had the need for setting additional C/C++ compilation flags in my OpenJDK8 build.
> It seems they are used for most jdk C/C++ compilation, but at least the generators from
>
> jdk/makefiles/gensrc/GensrcMisc.gmk
>
> seem to be an exception.
>
> Example :
>
> configure --with-extra-cflags=-DTESTMYEXTRAFLAGC --with-extra-cxxflags=-DTESTMYEXTRAFLAGCXX
>
> does not lead to the expected flags in the build for genSocketOptionRegistry.c :
>
> ...
> /usr/local/bin/gcc -DTHIS_FILE='"genSocketOptionRegistry.c"' -c -MMD -MF /mydir/open_jdk/jdk8/linuxx86_64_opt/jdk/gensrc/genSocketOptionRegistry/genSocketOptionRegistry.d
> -o /mydir/open_jdk/jdk8/linuxx86_64_opt/jdk/gensrc/genSocketOptionRegistry/genSocketOptionRegistry.o /mydir/open_jdk/jdk8/openjdk8/jdk/src/share/native/sun/nio/ch/genSocketOptionRegistry.c
> ...
>
> (while the flags show up for "normal" C/C++ files .)
>
> Is there another option (available / planned?) to configure the extra C/C++ compile flags for this special case ?
>
>
> Thanks,
> Matthias
>
I don't know if it's of any help, but I've noticed that configure
sometimes needs to be run twice before the additional/new/modified
option(s) take effect - quite frequently, the first time is merely a
re-run of the previously generated generated-configure.sh.
HTH ,
Rgds ,
--
Dave Pointon FIAP MBCS
Now I saw, tho' too late, the folly of beginning a work
before we count the cost and before we we judge rightly
of our strength to go thro' with it - Robinson Crusoe
More information about the build-dev
mailing list