[fedora-java] The default java alternative?
Stepan Kasal
skasal at redhat.com
Mon May 11 13:20:38 UTC 2009
Hello,
On Wed, May 06, 2009 at 02:39:01PM +0100, Andrew Haley wrote:
> [...] Use "-I/usr/lib/jvm/java/include/"
>
> Symlinks work like this:
>
> /usr/lib/jvm/java -->
> /etc/alternatives/java_sdk -->
> /usr/lib/jvm/java-1.6.0-openjdk.x86_64 -->
> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
>
> or, if gcj is installed instead,
>
> /usr/lib/jvm/java -->
> /etc/alternatives/java_sdk -->
> /usr/lib/jvm/java-1.5.0-gcj -->
> /usr/lib/jvm/java-1.5.0-gcj-1.5.0.0
indeed, this hint enabled me to make a spec file that builds both
with gcj and openjdk (see also http://bugzilla.redhat.com/498964#c2):
BuildRequires: java-devel
[...]
for i in -I/usr/lib/jvm/java/include{,/linux}; do
java_inc="$java_inc $i"
done
%configure CPPFLAGS="$java_inc"
Perhaps this could be part of Packaging:Java; I'm going to mail this
suggestion to fedora-packaging.
Stepan
More information about the fedora-devel-java-list
mailing list