You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-lang/crystal/files/crystal-0.34.0-no-usr-lib.p...

15 lines
506 B

On amd64 linux /usr/lib does not match default 64-bit ABI.
Let's rely on default compiler and linker paths instead.
--- a/src/compiler/crystal/codegen/link.cr
+++ b/src/compiler/crystal/codegen/link.cr
@@ -106,7 +106,7 @@ module Crystal
private def lib_flags_posix
library_path = ENV["LIBRARY_PATH"]?.try(&.split(':', remove_empty: true)) ||
- ["/usr/lib", "/usr/local/lib"]
+ [] of String
has_pkg_config = nil
String.build do |flags|