aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJoe Soroka <gits@joesoroka.com>2011-07-11 00:20:48 -0700
committerJoe Soroka <gits@joesoroka.com>2011-07-11 00:20:48 -0700
commit436c1a734ff8cc1e454e2fe1d88dd891af909991 (patch)
treeed116dd5f2992287f62f4bc4708bca7394687315 /configure
parentc71798c37690d73c91e7b345b0dd8e2a7738006e (diff)
downloadtinycc-436c1a734ff8cc1e454e2fe1d88dd891af909991.tar.gz
tinycc-436c1a734ff8cc1e454e2fe1d88dd891af909991.tar.bz2
allow defining sysroot at compile-time
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index d2049af..c9bc83a 100755
--- a/configure
+++ b/configure
@@ -353,7 +353,9 @@ echo "mandir=\$(DESTDIR)$mandir" >> config.mak
echo "infodir=\$(DESTDIR)$infodir" >> config.mak
echo "docdir=\$(DESTDIR)$docdir" >> config.mak
+echo "#ifndef CONFIG_SYSROOT" >> $TMPH
echo "#define CONFIG_SYSROOT \"$sysroot\"" >> $TMPH
+echo "#endif" >> $TMPH
echo "#ifndef CONFIG_TCCDIR" >> $TMPH
echo "#define CONFIG_TCCDIR \"$tccdir\"" >> $TMPH
echo "#endif" >> $TMPH