]> granicus.if.org Git - graphviz/commitdiff
gvcolor: fix: link -lm
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 8 Jun 2022 03:20:44 +0000 (20:20 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 8 Jun 2022 03:22:20 +0000 (20:22 -0700)
Commit 0efe2864048439507ddceda1d82d2159ad171f0d introduced a dependency on libm
functions but missed adding this dependency to the Autotools build system.

Gitlab: fixes #2246

CHANGELOG.md
cmd/tools/Makefile.am

index 4f1a127a2936da16792401a2a700a8691af83ab0..34e4fec5fc82a213bcb158a453656d5199b44484 100644 (file)
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 - **Breaking**: The 4.0.0 change replacing the `Agiodisc_t` struct member
   `putstr` by `printf` has been reverted
+- graphviz-4.0.0: build error: cmd/tools/gvcolor.c:159: undefined reference to
+  `fmax` #2246
 
 ## [4.0.0] – 2022-05-29
 
index 3f432ea0ce0631f4eee5ca6a5ec46ba0ef882d3b..818fe5a58c3630de1cef719f1665ec76e22106af 100644 (file)
@@ -122,8 +122,8 @@ gvcolor_SOURCES = gvcolor.c colxlate.c colortbl.h
 
 gvcolor_LDADD = \
        $(top_builddir)/lib/ingraphs/libingraphs_C.la \
-       $(top_builddir)/lib/cgraph/libcgraph.la
-
+       $(top_builddir)/lib/cgraph/libcgraph.la \
+       $(MATH_LIBS)
 
 bcomps_SOURCES = bcomps.c