Kaydet (Commit) fa8aaaad authored tarafından Matúš Kukan's avatar Matúš Kukan

Bin confusing --enable-mergelibs=all option

It was most probably not working anyway and is something different to
libmerged, which intends to merge only core set of libraries.
To build everything into one library, approach similar to what we do for
Android could be better idea.

Change-Id: Id5b8c2fa2b26e8faaaeb022ea55eb2e39909e875
üst 0cf38e7d
...@@ -915,11 +915,10 @@ AC_ARG_ENABLE([hardlink-deliver], ...@@ -915,11 +915,10 @@ AC_ARG_ENABLE([hardlink-deliver],
) )
AC_ARG_ENABLE(mergelibs, AC_ARG_ENABLE(mergelibs,
AS_HELP_STRING([--enable-mergelibs=<all/yes>], AS_HELP_STRING([--enable-mergelibs],
[Enables linking of big, merged, library. Experimental feature, tested [Enables linking of big, merged, library. Experimental feature, tested
only for Linux at some stage in history, but possibly does not work even only for Linux at some stage in history, but possibly does not work even
for Linux any more. 'all' will link a lot of libraries into libmerged for Linux any more. This will link a core set of libraries into libmerged.])
while 'yes' will do it for just a core set of libraries.])
) )
AC_ARG_ENABLE(graphite, AC_ARG_ENABLE(graphite,
...@@ -12735,12 +12734,7 @@ if test -n "$enable_mergelibs" -a "$enable_mergelibs" != "no"; then ...@@ -12735,12 +12734,7 @@ if test -n "$enable_mergelibs" -a "$enable_mergelibs" != "no"; then
if test $_os != Linux -a $_os != WINNT; then if test $_os != Linux -a $_os != WINNT; then
add_warning "--enable-mergelibs is not tested for this platform" add_warning "--enable-mergelibs is not tested for this platform"
fi fi
if test "$enable_mergelibs" = "all"; then MERGELIBS="TRUE"
MERGELIBS="ALL"
AC_DEFINE(STATIC_LINKING)
else
MERGELIBS="CORE"
fi
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
......
...@@ -32,7 +32,7 @@ endif ...@@ -32,7 +32,7 @@ endif
# In mergedlibs mode we have multiply-defined symbols, which Visual Studio # In mergedlibs mode we have multiply-defined symbols, which Visual Studio
# does not like. There is no good solution, so just force it. # does not like. There is no good solution, so just force it.
ifeq ($(COM),MSC) ifeq ($(COM),MSC)
ifeq ($(MERGELIBS),CORE) ifneq (,$(MERGELIBS))
$(eval $(call gb_CppunitTest_add_ldflags,connectivity_commontools,\ $(eval $(call gb_CppunitTest_add_ldflags,connectivity_commontools,\
/FORCE:MULTIPLE \ /FORCE:MULTIPLE \
)) ))
......
...@@ -123,7 +123,7 @@ if [[ ${DESTDIR}${pythondir} != ${GDBDIR} ]]; then ...@@ -123,7 +123,7 @@ if [[ ${DESTDIR}${pythondir} != ${GDBDIR} ]]; then
fi fi
if [[ -n "${MERGELIBS}" ]]; then if [[ -n "${MERGELIBS}" ]]; then
make_autoload merged program libmergedlo."$DYLIB" merge svl tl basegfx `[[ ${MERGELIBS} == "ALL" ]] && echo sw` make_autoload merged program libmergedlo."$DYLIB" merge svl tl basegfx
make_autoload cppu program libuno_cppu."$DYLIB".3 make_autoload cppu program libuno_cppu."$DYLIB".3
make_autoload sal program libuno_sal."$DYLIB".3 make_autoload sal program libuno_sal."$DYLIB".3
make_autoload sw program libswlo."$DYLIB" make_autoload sw program libswlo."$DYLIB"
......
...@@ -9,101 +9,6 @@ ...@@ -9,101 +9,6 @@
# #
ifneq ($(MERGELIBS),) ifneq ($(MERGELIBS),)
# set of libraries to link even more stuff into one merged library
gb_EXTRAMERGEDLIBS := \
$(if $(filter-out ANDROID IOS,$(OS)),abp) \
$(if $(filter unx,$(GUIBASE)),basebmp) \
$(call gb_Helper_optional,DBCONNECTIVITY,bib) \
$(call gb_Helper_optional,DBCONNECTIVITY,calc) \
chartcore \
$(call gb_Helper_optional,DBCONNECTIVITY,dba) \
$(call gb_Helper_optional,DBCONNECTIVITY,dbase) \
$(call gb_Helper_optional,DBCONNECTIVITY,dbp) \
$(call gb_Helper_optional,DBCONNECTIVITY,dbtools) \
$(call gb_Helper_optional,DBCONNECTIVITY,dbu) \
deploymentgui \
$(call gb_Helper_optional,EXPORT,egi) \
embobj \
emboleobj \
$(call gb_Helper_optional,EXPORT,eme) \
$(call gb_Helper_optional,EXPORT,epb) \
$(call gb_Helper_optional,EXPORT,epg) \
$(call gb_Helper_optional,EXPORT,epp) \
$(call gb_Helper_optional,EXPORT,eps) \
$(call gb_Helper_optional,EXPORT,ept) \
$(call gb_Helper_optional,EXPORT,era) \
$(call gb_Helper_optional,EXPORT,eti) \
$(call gb_Helper_optional,EXPORT,exp) \
$(call gb_Helper_optional,DBCONNECTIVITY,file) \
$(call gb_Helper_optional,DBCONNECTIVITY,flat) \
flash \
for \
forui \
fps_office \
$(call gb_Helper_optional,DBCONNECTIVITY,frm) \
fwl \
fwm \
graphicfilter \
guesslang \
$(if $(ENABLE_JAVA),hsqldb) \
hyphen \
icd \
icg \
idx \
ime \
ipb \
ipd \
ips \
ipt \
ipx \
ira \
itg \
iti \
$(if $(ENABLE_JAVA),jdbc) \
$(if $(filter-out ANDROID IOS,$(OS)),ldapbe2) \
lnth \
$(if $(filter-out ANDROID IOS,$(OS)),log) \
$(if $(ENABLE_LWP),lwpft) \
$(call gb_Helper_optional,DESKTOP,migrationoo2) \
$(call gb_Helper_optional,DESKTOP,migrationoo3) \
$(if $(filter-out WNT,$(OS)),$(call gb_Helper_optional,DBCONNECTIVITY,mork)) \
$(call gb_Helper_optional,DBCONNECTIVITY,mysql) \
$(if $(filter-out ANDROID IOS,$(OS)),odbc) \
odfflatxml \
offacc \
oox \
$(call gb_Helper_optional,DBCONNECTIVITY,pcr) \
pdffilter \
placeware \
res \
$(call gb_Helper_optional,DBCONNECTIVITY,rpt) \
$(call gb_Helper_optional,DBCONNECTIVITY,rptui) \
$(call gb_Helper_optional,DBCONNECTIVITY,rptxml) \
$(if $(filter-out ANDROID IOS,$(OS)),scn) \
sd \
$(call gb_Helper_optional,DBCONNECTIVITY,sdbc2) \
spell \
storagefd \
svgfilter \
swd \
t602filter \
test \
textfd \
$(call gb_Helper_optional,DESKTOP,unopkgapp) \
unotest \
$(call gb_Helper_optional,DESKTOP,updatefeed) \
$(call gb_Helper_optional,SCRIPTING,vbahelper) \
xmlfa \
xmlfd \
xmlsecurity \
xsltfilter
# FIXME: just retaining these for now - they currently crash & need thought.
#gb_EXTRAMERGEDLIBS := \
comphelper \
sc \
sw \
# we link all object files from these libraries into one, merged library # we link all object files from these libraries into one, merged library
gb_MERGEDLIBS := \ gb_MERGEDLIBS := \
...@@ -156,7 +61,6 @@ gb_MERGEDLIBS := \ ...@@ -156,7 +61,6 @@ gb_MERGEDLIBS := \
xmlscript \ xmlscript \
xo \ xo \
xstor \ xstor \
$(if $(filter ALL,$(MERGELIBS)),$(gb_EXTRAMERGEDLIBS))
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment