瀏覽代碼

tests/vendor: pass extra linker flags

on OpenBSD, botan library is third-party and live in /usr/local which isn't a path included by default in linker.
Sébastien Marie 3 年之前
父節點
當前提交
57862846a2
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      tests/vendor/Makefile

+ 8 - 1
tests/vendor/Makefile

@@ -1,6 +1,13 @@
 ODIN=../../odin
+ODINFLAGS=
+
+OS=$(shell uname)
+
+ifeq ($(OS), OpenBSD)
+    ODINFLAGS:=$(ODINFLAGS) -extra-linker-flags:-L/usr/local/lib
+endif
 
 all: botan_test
 
 botan_test:
-	$(ODIN) run botan -out=botan_hash -o:speed -no-bounds-check
+	$(ODIN) run botan -out=botan_hash -o:speed -no-bounds-check $(ODINFLAGS)