Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Another attempt at fixing libprivatezstd
Baptiste Daroussin committed 6 years ago
commit 1c3446c00344a0ac0eef7bc5cba8f33bffda7f66
parent 6ad9b25
1 file changed +7 -9
modified auto.def
@@ -80,6 +80,13 @@ cc-with { -libs { -llzma }} {
	}
}

+
define ZSTDLIB ""
+
cc-with { -libs { -lprivatezstd }} {
+
	if {[cc-check-functions ZSTD_versionNumber]} {
+
		define ZSTDLIB "-lprivatezstd"
+
	}
+
}
+

# Atomics
msg-checking "Checking for atomic builtins... "
if {[cctest -code {
@@ -277,15 +284,6 @@ if {[pkg-config-init 0]} {
	}
}

-
# check if the privatelibzstd is there
-
cc-with { -libs { -larchive }} {
-
	if {[cc-check-functions archive_write_add_filter_zstd]} {
-
		define ZSTDLIB "-lprivatezstd"
-
	} else {
-
		define ZSTDLIB ""
-
	}
-
}
-

foreach repo [list binary] {
	define-append REPOS $repo
	define-append REPOS_LDFLAGS -L\$(top_builddir)/libpkg/repo/${repo} -lrepo-${repo}_pic