Skip to content

Commit

Permalink
configure: link to m on any GNU system
Browse files Browse the repository at this point in the history
GNU-based systems use GNU libc, which provides the math functions in
a separate "m" library. Hence, unconditionally link to it on any GNU
system.
  • Loading branch information
pinotree committed Nov 17, 2021
1 parent f8731f8 commit b5520c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ AM_ICONV

AC_CANONICAL_HOST
AS_CASE([$host],
[*linux*|*bsd*|*mingw*|*cygwin*], [EXTRA_LIBS="-lm"],
[*linux*|*bsd*|*mingw*|*cygwin*|*gnu*], [EXTRA_LIBS="-lm"],
[EXTRA_LIBS=""])
AC_SUBST([EXTRA_LIBS])

Expand Down

0 comments on commit b5520c2

Please sign in to comment.