Skip to content

Commit 574b15d

Browse files
committed
Fixes #1568 - Prefer loading zlib and szip libraries dynamically
Fixes the following error on Ubuntu 20.04: /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libz.a(deflate.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status [814/816] Compiling C++ object UnitTests/test_driver.p/test_driver.cpp.o ninja: build stopped: subcommand failed.
1 parent fa910a0 commit 574b15d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

externals/cgns/hdf5/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ hdf5_conf_data.set('version', '1.12.1')
2525
ext_deps = []
2626

2727

28-
opt_zlib = dependency('zlib', required: false, static: true)
29-
opt_szip = dependency('szip', required: false, static: true)
28+
opt_zlib = dependency('zlib', required: false, static: false)
29+
opt_szip = dependency('szip', required: false, static: false)
3030

3131
if opt_zlib.found() and cc.has_header('zlib.h')
3232
if cc.has_function('inflate', dependencies: opt_zlib, prefix: '#include <zlib.h>')

0 commit comments

Comments
 (0)