From e8a48ab18dd5142b4be9f842bc511c39e06ff6ff Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 7 Apr 2012 22:28:59 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9448 cda61777-01e9-0310-a592-d414129be87e --- mkfiles.pl | 4 ++-- 1 file 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", -- 2.11.0