add -lm to ldflags on Solaris

Mon, 04 Mar 2024 09:06:15 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 04 Mar 2024 09:06:15 +0100
changeset 842
b48cbfa109d4
parent 841
93851c0babe4
child 843
7d2959b7fff2

add -lm to ldflags on Solaris

configure file | annotate | diff | comparison | revisions
make/project.xml file | annotate | diff | comparison | revisions
--- a/configure	Mon Mar 04 08:57:26 2024 +0100
+++ b/configure	Mon Mar 04 09:06:15 2024 +0100
@@ -468,6 +468,19 @@
     done
     break
 done
+while true
+do
+    if notisplatform "solaris"; then
+        break
+    fi
+    while true
+    do
+
+        TEMP_LDFLAGS="$TEMP_LDFLAGS -lm"
+        break
+    done
+    break
+done
 
 # add general dependency flags to flags.mk
 echo "# general flags" >> "$TEMP_DIR/flags.mk"
--- a/make/project.xml	Mon Mar 04 08:57:26 2024 +0100
+++ b/make/project.xml	Mon Mar 04 09:06:15 2024 +0100
@@ -19,6 +19,10 @@
             dist_dir=${src_dir}/dist
         </make>
     </dependency>
+    
+    <dependency platform="solaris">
+        <ldflags>-lm</ldflags>
+    </dependency>
 
     <dependency name="file-tools">
         <make>

mercurial