* Use 'cc' instead of gcc as the default compiler.
}
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"));
}
+ikiwiki (2.14) UNRELEASED; urgency=low
+
+ * Let CC be used to control what compiler is used to build wrappers.
+ * Use 'cc' instead of gcc as the default compiler.
+
+ -- Joey Hess <joeyh@debian.org> Sun, 25 Nov 2007 15:49:49 -0500
+
ikiwiki (2.13) unstable; urgency=low
The ikiwiki zombie army release.
using command-line switches, you will rarely need to use this, but it can be
useful for the odd option that lacks a command-line switch.
+# ENVIRONMENT
+
+* CC
+
+ This controls what C compiler is used to build wrappers. Default is 'cc'.
+
# SEE ALSO
* [[ikiwiki-mass-rebuild]](8)