aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2012-04-07 22:28:59 +0000
committerSimon Tatham <anakin@pobox.com>2012-04-07 22:28:59 +0000
commit51d1f0f856b92a31cee4985f950a7c6b58169d21 (patch)
tree560519f2863abf01eeb8d025bd882d20415e3d03
parent4f81608c40cdecec7448d97f4bbf7f01b524b963 (diff)
downloadpuzzles-51d1f0f856b92a31cee4985f950a7c6b58169d21.zip
puzzles-51d1f0f856b92a31cee4985f950a7c6b58169d21.tar.gz
puzzles-51d1f0f856b92a31cee4985f950a7c6b58169d21.tar.bz2
puzzles-51d1f0f856b92a31cee4985f950a7c6b58169d21.tar.xz
Add an explicit -lm to the link lines in Makefile.gtk, after two users
reported on the same day that this is now necessary since up-to-date GNU tools won't consider it sufficient to have libm be a dependency of other explicitly referenced libraries if you're directly referring to the contents of libm yourself. [originally from svn r9448]
-rwxr-xr-xmkfiles.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkfiles.pl b/mkfiles.pl
index 4ab0796..3df8d16 100755
--- a/mkfiles.pl
+++ b/mkfiles.pl
@@ -1118,8 +1118,8 @@ if (defined $makefiles{'gtk'}) {
&splitline("CFLAGS := -O2 -Wall -Werror -ansi -pedantic -g " .
(join " ", map {"-I$dirpfx$_"} @srcdirs) .
" `\$(GTK_CONFIG) --cflags` \$(CFLAGS)")."\n".
- "XLIBS = `\$(GTK_CONFIG) --libs`\n".
- "ULIBS =#\n".
+ "XLIBS = `\$(GTK_CONFIG) --libs` -lm\n".
+ "ULIBS = -lm#\n".
"INSTALL=install\n",
"INSTALL_PROGRAM=\$(INSTALL)\n",
"INSTALL_DATA=\$(INSTALL)\n",