aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-21 07:16:33 +0300
committerseyko <seyko2@gmail.com>2015-03-21 07:16:33 +0300
commitb5d25654d8316601f0bb109069a9f00b404c5673 (patch)
tree688006d41d4225059f9ff6c656abd8fbaedb06db /configure
parent63d068d3f208ca4c5762cf87066d8b43e8fc5823 (diff)
downloadtinycc-b5d25654d8316601f0bb109069a9f00b404c5673.tar.gz
tinycc-b5d25654d8316601f0bb109069a9f00b404c5673.tar.bz2
configure: don't output CONFIG_LDDIR when build_cross = "yes"
This fixes i386-tcc on CentOS 7. After patch [root@centos7 tinycc]# ./i386-tcc -vv tcc version 0.9.26 (i386, Linux) install: /usr/local/lib/tcc crt: /usr/lib libraries: /usr/lib /lib /usr/local/lib Before patch: [root@centos7 tinycc]# ./i386-tcc -vv tcc version 0.9.26 (i386, Linux) install: /usr/local/lib/tcc crt: /usr/lib64 libraries: /usr/lib64 /lib64 /usr/local/lib64
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index d33092a..cb841ba 100755
--- a/configure
+++ b/configure
@@ -463,7 +463,9 @@ echo "/* Automatically generated by configure - do not modify */" > $TMPH
print_inc CONFIG_SYSROOT "$sysroot"
print_inc CONFIG_TCCDIR "$tccdir"
+if test "$build_cross" = "no"; then
print_inc CONFIG_LDDIR "$tcc_lddir"
+fi
print_mak CONFIG_TCC_SYSINCLUDEPATHS "$tcc_sysincludepaths"
print_mak CONFIG_TCC_LIBPATHS "$tcc_libpaths"
print_mak CONFIG_TCC_CRTPREFIX "$tcc_crtprefix"