summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2021-03-13 19:34:11 +0000
committerryoon <ryoon@pkgsrc.org>2021-03-13 19:34:11 +0000
commit4fc6aca62fe1587cc3e4fa1ae9dd080ac421437e (patch)
tree4d487f701ac9f97d31f7ddc7c33f21fe0cad9eb5 /archivers
parent332df17735d8da25f78dc21987ef48db6e0fc9fd (diff)
downloadpkgsrc-4fc6aca62fe1587cc3e4fa1ae9dd080ac421437e.tar.gz
libarchive: Fix bootstrap build under Haiku OS/x86_64 R1/beta2
Haiku OS R1/beta2 provides readpassphrase.h header file and readpassphrase function in libbsd library. And libarchive's configure script detects readpassphrase.h and does not detect readpassphrase function. In this case, libarchive try to use readpassphrase.h and build and use internal readpassphrase inplementation. readpassphrase.h defines readpassphrase function as non-static and the internal implemantation is static. This inconsistency breaks bootstrap pkgsrc under Haiku OS/x86_64 R1/beta2. Add -lbsd to LIBS in Haiku OS case to fix the build and bootstrap.
Diffstat (limited to 'archivers')
-rwxr-xr-xarchivers/libarchive/files/configure1
1 files changed, 1 insertions, 0 deletions
diff --git a/archivers/libarchive/files/configure b/archivers/libarchive/files/configure
index 937f7a6fd41..8de1f84503d 100755
--- a/archivers/libarchive/files/configure
+++ b/archivers/libarchive/files/configure
@@ -10285,6 +10285,7 @@ _LT_EOF
haiku*)
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
link_all_deplibs=yes
+ LIBS="-lbsd $LIBS"
;;
os2*)