Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix detection of libarchive with builtin zstd support
Baptiste Daroussin committed 6 years ago
commit 09641dddf2c1efe415eeb0c8d6c42132f4aa6211
parent 41236a3
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 ""
	}
}