From d179a7d376e172b2d71170debd12007d73e0618c Mon Sep 17 00:00:00 2001 From: Joshua Cearley Date: Sat, 18 Nov 2017 21:08:00 -0600 Subject: [PATCH] Use fb_config to find import headers. refs #2 --- examples/ex01.nim | 2 -- examples/ex02.nim | 2 -- firebird3.nim | 3 +++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/ex01.nim b/examples/ex01.nim index 268d223..cdd72c8 100644 --- a/examples/ex01.nim +++ b/examples/ex01.nim @@ -1,6 +1,4 @@ -{.passl: "-lfbembed".} - import ../firebird3 var status_vector: STATUS_ARRAY diff --git a/examples/ex02.nim b/examples/ex02.nim index bcd63a7..b03c9b6 100644 --- a/examples/ex02.nim +++ b/examples/ex02.nim @@ -1,6 +1,4 @@ -{.passl: "-lfbembed".} - import ../firebird3 var status_vector: STATUS_ARRAY diff --git a/firebird3.nim b/firebird3.nim index 5d06784..baba43e 100644 --- a/firebird3.nim +++ b/firebird3.nim @@ -1,4 +1,7 @@ +{.passc: staticExec("fb_config --cflags").} +{.passl: "-lfbclient".} + assert int.sizeof == pointer.sizeof const