]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
Use static linking for libarchive by default on MacOS
authorTheodore Ts'o <tytso@mit.edu>
Sun, 15 Jun 2025 10:30:05 +0000 (06:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 15 Jun 2025 10:30:05 +0000 (06:30 -0400)
commit386e7db5e6d87e42001803de314d6568105cd8ee
treed2f40d760af07a23f562bfb0a30428801d5b38a8
parentc54a2e825847c898c7f003b8556ba2eca08349f1
Use static linking for libarchive by default on MacOS

Apparently dlopen() path searching doesn't work or is unreliable on
MacOS; it appears to not search LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, or
DYLD_FALLBACK_LIBRARY_PATH as documented by the dlopen(3) man page.
Furthmore setting any of these variables to include /opt/local/lib,
which is where MacPort drops libarchive.13.dylib, can cause all manner
of warnings when running other dynamically linked programs, such as
"grep".  What a mess.  It appears dlopen(2) support in MacOS is a
disaster, and it's not really needed since we don't care about the
size of mke2fs on installation media on non-Linux systems.  So default
to using --with-libarchive=direct for MacOS.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
configure
configure.ac