Skip to content

Commit

Permalink
COMP: wasi doesn't support pthread
Browse files Browse the repository at this point in the history
Fix 'pthread.h not found' error by disabling
thread support on DCMTK. Set DCMTK_WITH_THREADS = OFF
to disable threads.

Refer to [1] for more details.

[1] WebAssembly/wasi-libc#209
  • Loading branch information
jadh4v authored and thewtex committed May 7, 2024
1 parent 937a0f7 commit e4343bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/ThirdParty/DCMTK/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ endforeach()
-DCMAKE_INSTALL_BINDIR:PATH=${CMAKE_INSTALL_BINDIR}
-DDCMTK_ENABLE_BUILTIN_OFICONV_DATA:BOOL=${DCMTK_ENABLE_BUILTIN_OFICONV_DATA}
-DCMAKE_CXX_FLAGS:STRING=${DCMTK_CXX_FLAGS}
-DDCMTK_WITH_THREADS:BOOL=${DCMTK_WITH_THREADS}
${CHARSET_CONVERSION_ARGS}
DEPENDS ${JPEG_DEPENDENCY} ${PNG_DEPENDENCY} ${TIFF_DEPENDENCY} ${ICU_DEPENDENCY}
BUILD_BYPRODUCTS ${DCMTK_BYPRODUCTS}
Expand Down

0 comments on commit e4343bd

Please sign in to comment.