Author: damjan
Date: Sat Sep 8 08:16:23 2018
New Revision: 1840343
URL: http://svn.apache.org/viewvc?rev=1840343&view=rev
Log:
When building other languages (--with-lang="..."), the build was breaking
because rsc couldn't compile certain resources (usually in main/sfx2).
Apparently the RSC preprocessor, rscpp, uses very small buffers by default.
When the SOLAR preprocessor definition is defined, it uses bigger buffers
instead. Previously dmake was explicitly passing "-DSOLAR" to the C compiler
but I missed it when porting main/rsc to gbuild. When added back,
main/sfx2 builds languages successfully.
Patch by: me
Modified:
openoffice/trunk/main/rsc/Executable_rscpp.mk
Modified: openoffice/trunk/main/rsc/Executable_rscpp.mk
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/rsc/Executable_rscpp.mk?rev=1840343&r1=1840342&r2=1840343&view=diff
==============================================================================
--- openoffice/trunk/main/rsc/Executable_rscpp.mk (original)
+++ openoffice/trunk/main/rsc/Executable_rscpp.mk Sat Sep 8 08:16:23 2018
@@ -31,6 +31,10 @@ $(eval $(call gb_Executable_set_include,
-I$(SRCDIR)/rsc/inc/pch \
))
+$(eval $(call gb_Executable_add_defs,rscpp,\
+ -DSOLAR \
+))
+
ifeq ($(GUI),UNX)
$(eval $(call gb_Executable_add_defs,rscpp,\
-Dunix \