tdf#116412 include bz2 module in internal python
This commit includes the changes in5e3510dbb6and219bef04b7, as well as the following changes: * add bzip2 as permissable build target when cross compiling for Windows ARM64. * add external/bzip2/disable-test.patch.0 for cross-compiling. * revert the changes to configure.ac in5e3510dbb6. * change the argument of gb_UnpackedTarball_fix_end_of_line. Change-Id: Iad8b1ed48d6c56e1302d9ac11620dc8084e79276 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157101 Tested-by: Taichi Haradaguchi <20001722@ymail.ne.jp> Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
This commit is contained in:
+4
@@ -10,6 +10,7 @@
|
||||
$(eval $(call gb_ExternalProject_ExternalProject,python3))
|
||||
|
||||
$(eval $(call gb_ExternalProject_use_externals,python3,\
|
||||
bzip2 \
|
||||
expat \
|
||||
$(if $(filter WNT LINUX,$(OS)),libffi) \
|
||||
openssl \
|
||||
@@ -36,6 +37,7 @@ $(call gb_ExternalProject_get_state_target,python3,build) :
|
||||
$(call gb_Trace_StartRange,python3,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
MAKEFLAGS= MSBuild.exe pcbuild.sln /t:Build $(gb_MSBUILD_CONFIG_AND_PLATFORM) \
|
||||
/p:bz2Dir=$(call gb_UnpackedTarball_get_dir,bzip2) \
|
||||
/p:opensslIncludeDir=$(call gb_UnpackedTarball_get_dir,openssl)/include \
|
||||
/p:opensslOutDir=$(call gb_UnpackedTarball_get_dir,openssl) \
|
||||
/p:zlibDir=$(call gb_UnpackedTarball_get_dir,zlib) \
|
||||
@@ -107,6 +109,7 @@ $(call gb_ExternalProject_get_state_target,python3,build) :
|
||||
) \
|
||||
CC="$(strip $(CC) \
|
||||
$(if $(filter -fsanitize=undefined,$(CC)),-fno-sanitize=function) \
|
||||
$(if $(SYSTEM_BZIP2),,-I$(call gb_UnpackedTarball_get_dir,bzip2)) \
|
||||
$(if $(SYSTEM_EXPAT),,-I$(call gb_UnpackedTarball_get_dir,expat)/lib) \
|
||||
$(if $(SYSBASE), -I$(SYSBASE)/usr/include) \
|
||||
)" \
|
||||
@@ -114,6 +117,7 @@ $(call gb_ExternalProject_get_state_target,python3,build) :
|
||||
$(if $(filter -fsanitize=%,$(CC)),LINKCC="$(CXX) -pthread") \
|
||||
LDFLAGS="$(strip $(LDFLAGS) \
|
||||
$(if $(filter LINUX,$(OS)),-L$(call gb_UnpackedTarball_get_dir,libffi)/$(HOST_PLATFORM)/.libs) \
|
||||
$(if $(SYSTEM_BZIP2),,-L$(call gb_UnpackedTarball_get_dir,bzip2)) \
|
||||
$(if $(SYSTEM_EXPAT),,-L$(gb_StaticLibrary_WORKDIR)) \
|
||||
$(if $(SYSTEM_ZLIB),,-L$(gb_StaticLibrary_WORKDIR)) \
|
||||
$(if $(SYSBASE), -L$(SYSBASE)/usr/lib) \
|
||||
|
||||
Reference in New Issue
Block a user