aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Wrapper.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-11-25 15:50:31 -0500
committerJoey Hess <joey@kodama.kitenet.net>2007-11-25 15:50:31 -0500
commitf2e5709a331e28abd962b67bb4a31c1c4be45d28 (patch)
tree0d97545d76f9a039d047cb9cc06c6cebfa2240ca /IkiWiki/Wrapper.pm
parent899fb749e98d5c533ba74be6e9dcc617f6436882 (diff)
downloadikiwiki-f2e5709a331e28abd962b67bb4a31c1c4be45d28.tar
ikiwiki-f2e5709a331e28abd962b67bb4a31c1c4be45d28.tar.gz
* Let CC be used to control what compiler is used to build wrappers.
* Use 'cc' instead of gcc as the default compiler.
Diffstat (limited to 'IkiWiki/Wrapper.pm')
-rw-r--r--IkiWiki/Wrapper.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm
index 6687cace2..dcf3e5c36 100644
--- a/IkiWiki/Wrapper.pm
+++ b/IkiWiki/Wrapper.pm
@@ -102,7 +102,9 @@ $envsave
}
EOF
close OUT;
- if (system("gcc", "$wrapper.c", "-o", "$wrapper.new") != 0) {
+
+ my $cc=exists $ENV{CC} ? possibly_foolish_untaint($ENV{CC}) : 'cc';
+ if (system($cc, "$wrapper.c", "-o", "$wrapper.new") != 0) {
#translators: The parameter is a C filename.
error(sprintf(gettext("failed to compile %s"), "$wrapper.c"));
}