summaryrefslogtreecommitdiff
blob: c4ac19eed57ead80c33603e690a53e82d243fa25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -ru puzzles-r9861.orig/mkfiles.pl puzzles-r9861/mkfiles.pl
--- puzzles-r9861.orig/mkfiles.pl	2013-03-30 16:16:21.000000000 -0400
+++ puzzles-r9861/mkfiles.pl	2013-06-11 17:59:54.255885226 -0400
@@ -1117,8 +1117,8 @@
     "\n".
     &splitline("CFLAGS := -O2 -Wall -Werror -ansi -pedantic -g " .
 	       (join " ", map {"-I$dirpfx$_"} @srcdirs) .
-	       " `\$(GTK_CONFIG) --cflags` \$(CFLAGS)")."\n".
-    "XLIBS = `\$(GTK_CONFIG) --libs` -lm\n".
+	       " `pkg-config gtk+-2.0 --cflags` \$(CFLAGS)")."\n".
+    "XLIBS = `pkg-config gtk+-2.0 --libs` -lm\n".
     "ULIBS = -lm#\n".
     "INSTALL=install\n",
     "INSTALL_PROGRAM=\$(INSTALL)\n",
@@ -1138,7 +1138,7 @@
       $objstr = &objects($p, "X.o", undef, undef);
       print &splitline("\$(BINPREFIX)" . $prog . ": " . $objstr), "\n";
       $libstr = &objects($p, undef, undef, "-lX");
-      print &splitline("\t\$(CC) -o \$@ $objstr $libstr \$(XLFLAGS) \$(${type}LIBS)", 69),
+      print &splitline("\t\$(CC) \$(LDFLAGS) -o \$@ $objstr $libstr \$(XLFLAGS) \$(${type}LIBS)", 69),
 	  "\n\n";
     }
     foreach $d (&deps("X.o", undef, $dirpfx, "/")) {