Kaydet (Commit) 7f2e1684 authored tarafından Michael Stahl's avatar Michael Stahl

boost, orcus: disable bizarre "auto link" feature for MSVC:

Boost apparently uses a MSVC auto-link feature to cause MSVC to request
a static library with a very particular name; disable this and remove
the associated ugly workarounds boost/Package_boost*.mk.
(Another alternative better than Package_boost*.mk would be to
just mangle the static library name in RepositoryFixes.mk)

Change-Id: Iea91f9978da00d89d2a696f3cdd090a85cea8e64
üst d73fc13a
......@@ -336,9 +336,24 @@ ifeq ($(OS),WNT)
$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
boostthread \
))
endif
define gb_LinkTarget__use_boostthread
$(call gb_LinkTarget_add_defs,$(1),\
-DBOOST_ALL_NO_LIB \
)
$(call gb_LinkTarget_use_static_libraries,$(1),\
boostthread \
)
endef
endif # WNT
define gb_LinkTarget__use_boostdatetime
$(call gb_LinkTarget_add_defs,$(1),\
-DBOOST_ALL_NO_LIB \
)
$(call gb_LinkTarget_use_static_libraries,$(1),\
boostdatetime \
)
......
......@@ -18,8 +18,6 @@ $(eval $(call gb_Module_add_targets,boost,\
ifeq ($(OS),WNT)
$(eval $(call gb_Module_add_targets,boost,\
Package_boostdatetime \
Package_boostthread \
StaticLibrary_boostthread \
))
endif
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,boostdatetime,$(gb_StaticLibrary_OUTDIRLOCATION)))
$(eval $(call gb_Package_add_file,boostdatetime,lib/libboost_date_time-vc90-mt-1_44.lib,$(notdir $(call gb_StaticLibrary_get_target,boostdatetime))))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,boostthread,$(gb_StaticLibrary_OUTDIRLOCATION)))
$(eval $(call gb_Package_add_file,boostthread,lib/libboost_thread-vc90-mt-1_44.lib,$(notdir $(call gb_StaticLibrary_get_target,boostthread))))
# vim: set noet sw=4 ts=4:
......@@ -10,7 +10,12 @@
$(eval $(call gb_StaticLibrary_StaticLibrary,boostdatetime))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,boostdatetime))
# disable "auto link" "feature" on MSVC
$(eval $(call gb_StaticLibrary_add_defs,boostdatetime,\
-DBOOST_ALL_NO_LIB \
))
$(eval $(call gb_StaticLibrary_use_unpacked,boostdatetime,boost))
$(eval $(call gb_StaticLibrary_set_generated_cxx_suffix,boostdatetime,cpp))
......
......@@ -10,7 +10,12 @@
$(eval $(call gb_StaticLibrary_StaticLibrary,boostthread))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,boostthread))
# disable "auto link" "feature" on MSVC
$(eval $(call gb_StaticLibrary_add_defs,boostthread,\
-DBOOST_ALL_NO_LIB \
))
$(eval $(call gb_StaticLibrary_use_unpacked,boostthread,boost))
$(eval $(call gb_StaticLibrary_set_generated_cxx_suffix,boostthread,cpp))
......
--- misc/liborcus_0.1.0/vsprojects/liborcus-static-nozip/liborcus-static-nozip.vcproj 2012-09-07 06:00:35.000000000 +0200
+++ misc/build/liborcus_0.1.0/vsprojects/liborcus-static-nozip/liborcus-static-nozip.vcproj 2012-09-10 18:10:23.821600000 +0200
@@ -42,7 +42,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
- PreprocessorDefinitions="__ORCUS_STATIC_LIB"
+ PreprocessorDefinitions="__ORCUS_STATIC_LIB;BOOST_ALL_NO_LIB"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@@ -107,7 +107,7 @@
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories=""
- PreprocessorDefinitions="__ORCUS_STATIC_LIB"
+ PreprocessorDefinitions="__ORCUS_STATIC_LIB;BOOST_ALL_NO_LIB"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
WarningLevel="3"
......@@ -46,6 +46,10 @@ PATCH_FILES+=liborcus_0.1.0-mingw.patch
.IF "$(GUI)$(COM)"=="WNTMSC"
# disable boost "auto lib" in MSVC build
# for some reason (CRLF in file?) this patch doesn't want to apply on unix...
PATCH_FILES+=liborcus_0.1.0-boost_disable_auto_lib.patch
BUILD_DIR=vsprojects/liborcus-static-nozip
BUILD_ACTION= \
export BOOST_INCLUDE_DIR=$(OUTDIR)/inc/external && \
......
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