]> git.tdb.fi Git - libs/math.git/commitdiff
Add the math library as an exported library on Linux
authorMikko Rasa <tdb@tdb.fi>
Thu, 5 Jan 2023 23:12:17 +0000 (01:12 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 5 Jan 2023 23:12:17 +0000 (01:12 +0200)
Some template code here uses functions from it, so users of this package
must link the library for template instantiations to work.

Build

diff --git a/Build b/Build
index 7fa961cbcb4bab1e6dada5febe808308bd219e29..2795c66748a663d00e7d6a9933feab925fad2080 100644 (file)
--- a/Build
+++ b/Build
@@ -9,6 +9,17 @@ package "mspmath"
                standard CXX "c++11";
        };
 
+       if_arch "linux"
+       {
+               export
+               {
+                       build_info
+                       {
+                               library "m";
+                       };
+               };
+       };
+
        library "mspmath"
        {
                source "source/interpolate";