From b5d25654d8316601f0bb109069a9f00b404c5673 Mon Sep 17 00:00:00 2001 From: seyko Date: Sat, 21 Mar 2015 07:16:33 +0300 Subject: [PATCH] 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 --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index d33092ad..cb841baa 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" -- 2.11.4.GIT