ports/lang/crystal/patches/patch-src_compiler_crystal_compiler_cr

15 lines
581 B
Text

# This patch must also be applied to the source tree on the cross-compiling
# host when building crystal.o
Index: src/compiler/crystal/compiler.cr
--- src/compiler/crystal/compiler.cr.orig
+++ src/compiler/crystal/compiler.cr
@@ -365,6 +365,9 @@ module Crystal
else
link_flags = @link_flags || ""
link_flags += " -rdynamic"
+ if program.has_flag? "openbsd"
+ link_flags += " -L/usr/local/lib"
+ end
{ %(#{CC} "${@}" -o #{Process.quote_posix(output_filename)} #{link_flags} #{program.lib_flags}), object_names }
end