From 0b0ae52be539ae195c0ee70674a0e87581bc9696 Mon Sep 17 00:00:00 2001 From: Despereaux Polacre Date: Thu, 2 Jan 2025 21:31:34 +0100 Subject: [PATCH] add default -I and -L paths for OpenBSD --- build_odin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_odin.sh b/build_odin.sh index 3547689d592..d909de5c8b1 100755 --- a/build_odin.sh +++ b/build_odin.sh @@ -110,8 +110,8 @@ Linux) LDFLAGS="$LDFLAGS -Wl,-rpath=\$ORIGIN" ;; OpenBSD) - CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags)" - LDFLAGS="$LDFLAGS -liconv" + CXXFLAGS="$CXXFLAGS -I/usr/local/include $($LLVM_CONFIG --cxxflags --ldflags)" + LDFLAGS="$LDFLAGS -L/usr/local/lib -liconv" LDFLAGS="$LDFLAGS $($LLVM_CONFIG --libs core native --system-libs)" ;; Haiku)