Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix detection of libarchive with builtin zstd support
Baptiste Daroussin committed 6 years ago
commit 09641dddf2c1efe415eeb0c8d6c42132f4aa6211
parent 41236a3ab4295ba20b4f3f7fe7db4c18e9ba1564
1 file changed +8 -8
modified auto.def
@@ -274,15 +274,15 @@ if {[pkg-config-init 0]} {
				cc-check-functions archive_write_add_filter_zstd
			}
		}
+
	}
+
}
+

+
# check if the privatelibzstd is there
+
cc-with { -libs { -larchive }} {
+
	if {[cc-check-functions archive_write_add_filter_zstd]} {
+
		define ZSTDLIB "-lprivatezstd"
	} else {
-
		# 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 ""
-
			}
-
		}
+
		define ZSTDLIB ""
	}
}