* Let CC be used to control what compiler is used to build wrappers.

* Use 'cc' instead of gcc as the default compiler.
master
Joey Hess 2007-11-25 15:50:31 -05:00
parent 899fb749e9
commit f2e5709a33
3 changed files with 16 additions and 1 deletions

View File

@ -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"));
}

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
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.

View File

@ -300,6 +300,12 @@ configuration options of their own.
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)