Review request: Zero assembler port

Gary Benson gbenson at redhat.com
Thu Jul 16 06:29:02 PDT 2009


Gary Benson wrote:
> Zero uses one external library, libffi, for JNI method invocation.
> The following two variables are used to tell the compiler and linker
> how to find libffi.  These can be set by the user, but if left unset
> then jdk/make/jdk_generic_profile.sh will attempt to set them using
> pkg-config:
> 
>   LIBFFI_CFLAGS
>     Flags to be passed to the C++ compiler to build against libffi.
> 
>   LIBFFI_LIBS
>     Flags to be passed to the linker to link against libffi.

It turns out that Gentoo builds libffi without the pkg-config stuff.
The following webrev has a modified jdk/make/jdk_generic_profile.sh
that adds default values to these two (LIBFFI_CFLAGS="" and
LIBFFI_LIBS="-lffi") to work with Gentoo (and any other distributions
that don't pkg-config libffi):

  http://cr.openjdk.java.net/~gbenson/zero-06/

Cheers,
Gary

-- 
http://gbenson.net/



More information about the hotspot-dev mailing list