Kaydet (Commit) 5c5a6c36 authored tarafından Caolán McNamara's avatar Caolán McNamara

bootstrap building with --disable-dynloading on standard linux

Change-Id: I5baf70f0053612cba8b74f54aff11ce25cdeb95a
Reviewed-on: https://gerrit.libreoffice.org/32202Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 0e0508b1
...@@ -12,9 +12,11 @@ $(eval $(call gb_Executable_Executable,cppumaker)) ...@@ -12,9 +12,11 @@ $(eval $(call gb_Executable_Executable,cppumaker))
$(eval $(call gb_Executable_use_external,cppumaker,boost_headers)) $(eval $(call gb_Executable_use_external,cppumaker,boost_headers))
$(eval $(call gb_Executable_use_libraries,cppumaker,\ $(eval $(call gb_Executable_use_libraries,cppumaker,\
sal \
salhelper \
unoidl \ unoidl \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),reg) \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),store) \
salhelper \
sal \
)) ))
$(eval $(call gb_Executable_use_static_libraries,cppumaker,\ $(eval $(call gb_Executable_use_static_libraries,cppumaker,\
......
...@@ -12,9 +12,11 @@ $(eval $(call gb_Executable_Executable,javamaker)) ...@@ -12,9 +12,11 @@ $(eval $(call gb_Executable_Executable,javamaker))
$(eval $(call gb_Executable_use_external,javamaker,boost_headers)) $(eval $(call gb_Executable_use_external,javamaker,boost_headers))
$(eval $(call gb_Executable_use_libraries,javamaker,\ $(eval $(call gb_Executable_use_libraries,javamaker,\
sal \
salhelper \
unoidl \ unoidl \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),reg) \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),store) \
salhelper \
sal \
)) ))
$(eval $(call gb_Executable_use_static_libraries,javamaker,\ $(eval $(call gb_Executable_use_static_libraries,javamaker,\
......
...@@ -21,6 +21,7 @@ $(eval $(call gb_Executable_use_externals,idlc,\ ...@@ -21,6 +21,7 @@ $(eval $(call gb_Executable_use_externals,idlc,\
$(eval $(call gb_Executable_use_libraries,idlc,\ $(eval $(call gb_Executable_use_libraries,idlc,\
reg \ reg \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),store) \
sal \ sal \
salhelper \ salhelper \
)) ))
......
...@@ -10,8 +10,10 @@ ...@@ -10,8 +10,10 @@
$(eval $(call gb_Executable_Executable,regmerge)) $(eval $(call gb_Executable_Executable,regmerge))
$(eval $(call gb_Executable_use_libraries,regmerge,\ $(eval $(call gb_Executable_use_libraries,regmerge,\
sal \
reg \ reg \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),store) \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),salhelper) \
sal \
)) ))
$(eval $(call gb_Executable_use_static_libraries,regmerge,\ $(eval $(call gb_Executable_use_static_libraries,regmerge,\
......
...@@ -15,8 +15,10 @@ $(eval $(call gb_Executable_set_include,regview, \ ...@@ -15,8 +15,10 @@ $(eval $(call gb_Executable_set_include,regview, \
)) ))
$(eval $(call gb_Executable_use_libraries,regview,\ $(eval $(call gb_Executable_use_libraries,regview,\
sal \
reg \ reg \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),store) \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),salhelper) \
sal \
)) ))
$(eval $(call gb_Executable_use_static_libraries,regview,\ $(eval $(call gb_Executable_use_static_libraries,regview,\
......
...@@ -23,10 +23,11 @@ $(eval $(call gb_Executable_add_defs,rsc,\ ...@@ -23,10 +23,11 @@ $(eval $(call gb_Executable_add_defs,rsc,\
)) ))
$(eval $(call gb_Executable_use_libraries,rsc,\ $(eval $(call gb_Executable_use_libraries,rsc,\
i18nlangtag \
comphelper \ comphelper \
sal \ $(if $(filter TRUE,$(DISABLE_DYNLOADING)),cppu) \
i18nlangtag \
tl \ tl \
sal \
$(gb_UWINAPI) \ $(gb_UWINAPI) \
)) ))
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
$(eval $(call gb_Module_Module,sal)) $(eval $(call gb_Module_Module,sal))
$(eval $(call gb_Module_add_targets,sal,\ $(eval $(call gb_Module_add_targets,sal,\
$(if $(CROSS_COMPILING),,Executable_cppunittester) \ $(if $(CROSS_COMPILING),,$(if $(filter TRUE,$(DISABLE_DYNLOADING)),,Executable_cppunittester)) \
$(if $(filter $(OS),ANDROID), \ $(if $(filter $(OS),ANDROID), \
Library_lo-bootstrap) \ Library_lo-bootstrap) \
Library_sal \ Library_sal \
......
...@@ -17,4 +17,8 @@ gb_LinkTarget_LDFLAGS += $(gb__LinkTarget_LDFLAGS_zdefs) ...@@ -17,4 +17,8 @@ gb_LinkTarget_LDFLAGS += $(gb__LinkTarget_LDFLAGS_zdefs)
include $(GBUILDDIR)/platform/unxgcc.mk include $(GBUILDDIR)/platform/unxgcc.mk
ifeq ($(DISABLE_DYNLOADING),TRUE)
gb_STDLIBS := -lpthread -ldl
endif
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -167,7 +167,8 @@ endef ...@@ -167,7 +167,8 @@ endef
define gb_LinkTarget__command define gb_LinkTarget__command
$(call gb_Output_announce,$(2),$(true),LNK,4) $(call gb_Output_announce,$(2),$(true),LNK,4)
$(if $(filter Library CppunitTest Executable,$(TARGETTYPE)),$(call gb_LinkTarget__command_dynamiclink,$(1),$(2))) $(if $(filter CppunitTest Executable,$(TARGETTYPE)),$(call gb_LinkTarget__command_dynamiclink,$(1),$(2)))
$(if $(filter Library,$(TARGETTYPE)),$(if $(filter TRUE,$(DISABLE_DYNLOADING)),$(call gb_LinkTarget__command_staticlink,$(1)),$(call gb_LinkTarget__command_dynamiclink,$(1),$(2))))
$(if $(filter StaticLibrary,$(TARGETTYPE)),$(call gb_LinkTarget__command_staticlink,$(1))) $(if $(filter StaticLibrary,$(TARGETTYPE)),$(call gb_LinkTarget__command_staticlink,$(1)))
endef endef
......
...@@ -14,9 +14,11 @@ $(eval $(call gb_Executable_add_exception_objects,unoidl-check, \ ...@@ -14,9 +14,11 @@ $(eval $(call gb_Executable_add_exception_objects,unoidl-check, \
)) ))
$(eval $(call gb_Executable_use_libraries,unoidl-check, \ $(eval $(call gb_Executable_use_libraries,unoidl-check, \
sal \
salhelper \
unoidl \ unoidl \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),reg) \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),store) \
salhelper \
sal \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -14,9 +14,11 @@ $(eval $(call gb_Executable_add_exception_objects,unoidl-read, \ ...@@ -14,9 +14,11 @@ $(eval $(call gb_Executable_add_exception_objects,unoidl-read, \
)) ))
$(eval $(call gb_Executable_use_libraries,unoidl-read, \ $(eval $(call gb_Executable_use_libraries,unoidl-read, \
sal \
salhelper \
unoidl \ unoidl \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),reg) \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),store) \
salhelper \
sal \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -14,9 +14,11 @@ $(eval $(call gb_Executable_add_exception_objects,unoidl-write, \ ...@@ -14,9 +14,11 @@ $(eval $(call gb_Executable_add_exception_objects,unoidl-write, \
)) ))
$(eval $(call gb_Executable_use_libraries,unoidl-write, \ $(eval $(call gb_Executable_use_libraries,unoidl-write, \
sal \
salhelper \
unoidl \ unoidl \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),reg) \
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),store) \
salhelper \
sal \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
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