Skip to content

Commit

Permalink
Merge pull request #171 from uyjulian/zlib_samename_fix
Browse files Browse the repository at this point in the history
fix: Fixes for zlib build multi thread
  • Loading branch information
uyjulian authored Oct 1, 2024
2 parents 9ae57c2 + b0a5e4e commit b0a9cd2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build-cmakelibs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ wait
# extract argtable2
tar -xzf build/argtable2-13.tar.gz -C build

# NOTE: zlib
# Make sure only one target will generate libz
pushd build/zlib
sed -i -e 's/set_target_properties(zlib zlibstatic PROPERTIES OUTPUT_NAME z)/set_target_properties(zlibstatic PROPERTIES OUTPUT_NAME z)/' CMakeLists.txt
popd

# NOTE: jsoncpp
# "snprintf" not found in "std" namespace error may occur, so patch that out here.
pushd build/jsoncpp
Expand All @@ -146,7 +152,7 @@ cd build
##
## Build cmake projects
##
PROC_NR=1 build_ee zlib -DUNIX:BOOL=ON -DZLIB_BUILD_EXAMPLES=OFF
build_ee zlib -DUNIX:BOOL=ON -DZLIB_BUILD_EXAMPLES=OFF
build_ee xz -DTUKLIB_CPUCORES_FOUND=ON -DTUKLIB_PHYSMEM_FOUND=ON -DHAVE_GETOPT_LONG=OFF -DBUILD_TESTING=OFF
build_ee lz4/build/cmake -DLZ4_POSITION_INDEPENDENT_LIB=OFF -DLZ4_BUILD_CLI=OFF -DLZ4_BUILD_LEGACY_LZ4C=OFF
build_ee libzip -DBUILD_TOOLS=OFF -DBUILD_REGRESS=OFF
Expand Down

0 comments on commit b0a9cd2

Please sign in to comment.