aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-08-30 07:49:36 +0200
committerTristan Gingold <tgingold@free.fr>2019-08-30 18:42:05 +0200
commit3c81c6f8fb41058e505c61db0f7d566ffebe2357 (patch)
treee9d38bf6e64c43b1aa132ffd6e7c18ec43aef1e7 /src/synth
parentf232983f1ec699d1c5c84045614c3a4d30098f9a (diff)
downloadghdl-3c81c6f8fb41058e505c61db0f7d566ffebe2357.tar.gz
ghdl-3c81c6f8fb41058e505c61db0f7d566ffebe2357.tar.bz2
ghdl-3c81c6f8fb41058e505c61db0f7d566ffebe2357.zip
synth: add support for --synth on llvm, link with -lm.
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/synth-expr.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb
index d24486f3d..26318bcf8 100644
--- a/src/synth/synth-expr.adb
+++ b/src/synth/synth-expr.adb
@@ -43,6 +43,10 @@ with Netlists.Builders; use Netlists.Builders;
with Netlists.Locations; use Netlists.Locations;
package body Synth.Expr is
+ -- As log2(3m) is directly referenced, the program must be linked with -lm
+ -- (math library) on unix systems.
+ pragma Linker_Options ("-lm");
+
function Synth_Name (Syn_Inst : Synth_Instance_Acc; Name : Node)
return Value_Acc;