aboutsummaryrefslogtreecommitdiff
path: root/mkfiles.pl
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2008-09-13 18:25:19 +0000
committerSimon Tatham <anakin@pobox.com>2008-09-13 18:25:19 +0000
commitfe1b91ac49cc2f4cd07801535dc19103a8ebeb70 (patch)
treee89b7747911378cf8387c58f50e50648a4e58469 /mkfiles.pl
parentacf5c55d355b49fec8fb5376737d606be0cd8d4f (diff)
downloadpuzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.zip
puzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.tar.gz
puzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.tar.bz2
puzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.tar.xz
Since the lack of this has caused portability issues in the past:
add "-ansi -pedantic" to the main Unix makefile, and clean up a few minor problems pointed out thereby. [originally from svn r8175]
Diffstat (limited to 'mkfiles.pl')
-rwxr-xr-xmkfiles.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfiles.pl b/mkfiles.pl
index 8119f6c..01f60e1 100755
--- a/mkfiles.pl
+++ b/mkfiles.pl
@@ -1108,7 +1108,7 @@ if (defined $makefiles{'gtk'}) {
"# to 1.2 if it isn't found.\n".
"GTK_CONFIG = sh -c 'pkg-config gtk+-2.0 \$\$0 2>/dev/null || gtk-config \$\$0'\n".
"\n".
- &splitline("CFLAGS = -O2 -Wall -Werror -g " .
+ &splitline("CFLAGS = -O2 -Wall -Werror -ansi -pedantic -g " .
(join " ", map {"-I$dirpfx$_"} @srcdirs) .
" `\$(GTK_CONFIG) --cflags`")."\n".
"XLDFLAGS = `\$(GTK_CONFIG) --libs`\n".