On Tue, May 31, 2011 at 2:26 PM, Simon Wilper <p9w.vu.31122...@gmx.de>wrote:

> syschild.cxx makes use of jvmaccess::VirtualMachine and
> ImplTestJavaException in GetParentWindowHandle.
>
> But actually it should work --without-java since the code passages in
> question are surrounded by #ifdef SOLAR_JAVA.
>
> Maybe I have a look at this when I find the time for it.


Turns out this is caused by changing vcl from the old (solenv/inc based)
build system to the new (solenv/gbuild based) one in one of the most recent
DEV300_m10X versions.  While solenv/inc/*.mk take care to pass -DSOLAR_JAVA
to C/C++ compilers only when appropriate, solenv/gbuild/gbuild.mk bluntly
always includes it in its gb_GLOBALDEFS.

diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk
>
> --- a/solenv/gbuild/gbuild.mk
>
> +++ b/solenv/gbuild/gbuild.mk
>
> @@ -147,7 +147,6 @@
>
>   -DENABLE_LAYOUT_EXPERIMENTAL=0 \
>
>   -DENABLE_LAYOUT=0 \
>
>   -DOSL_DEBUG_LEVEL=$(gb_DEBUGLEVEL) \
>
> - -DSOLAR_JAVA \
>
>   -DSTLPORT_VERSION=$(STLPORT_VER) \
>
>   -DSUPD=$(UPD) \
>
>   -DVCL \
>
> @@ -179,6 +178,10 @@
>
>
>
>  endif
>
>
>
> +ifeq ($(SOLAR_JAVA),TRUE)
>
> +gb_GLOBALDEFS += -DSOLAR_JAVA
>
> +endif
>
> +
>
>  ifneq ($(strip $(ENABLE_GTK)),)
>
>  gb_GLOBALDEFS += -DENABLE_GTK
>
>  endif
>
>
should fix that.
-- 
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@openoffice.org
For additional commands send email to sy...@openoffice.org
with Subject: help

Reply via email to