mirror of
https://github.com/frida/tinycc
synced 2024-11-28 10:33:07 +03:00
Fix commit 31ca000d
* CONFIG_TCC_*LDDIR should not be exported if no --*lddir option is used. * Don't write a : at the beginning of extralddir
This commit is contained in:
parent
31ca000d72
commit
38de06e334
10
configure
vendored
10
configure
vendored
@ -112,7 +112,7 @@ for opt do
|
||||
;;
|
||||
--lddir=*) lddir=`echo $opt | cut -d '=' -f 2`
|
||||
;;
|
||||
--extralddir=*) extralddir="$extralddir:`echo $opt | cut -d '=' -f 2`"
|
||||
--extralddir=*) extralddir="${extralddir:+:}`echo $opt | cut -d '=' -f 2`"
|
||||
;;
|
||||
--includedir=*) includedir=`echo $opt | cut -d '=' -f 2`
|
||||
;;
|
||||
@ -366,9 +366,13 @@ echo "docdir=\$(DESTDIR)$docdir" >> config.mak
|
||||
echo "#define CONFIG_SYSROOT \"$sysroot\"" >> $TMPH
|
||||
echo "#ifndef CONFIG_TCCDIR" >> $TMPH
|
||||
echo "#define CONFIG_TCCDIR \"$tccdir\"" >> $TMPH
|
||||
echo "#define CONFIG_TCC_LDDIR \"$lddir\"" >> $TMPH
|
||||
echo "#define CONFIG_TCC_EXTRA_LDDIR \"$extralddir\"" >> $TMPH
|
||||
echo "#endif" >> $TMPH
|
||||
if test -n "$lddir" ; then
|
||||
echo "#define CONFIG_TCC_LDDIR \"$lddir\"" >> $TMPH
|
||||
fi
|
||||
if test -n "$extralddir" ; then
|
||||
echo "#define CONFIG_TCC_EXTRA_LDDIR \"$extralddir\"" >> $TMPH
|
||||
fi
|
||||
echo "CC=$cc" >> config.mak
|
||||
echo "GCC_MAJOR=$gcc_major" >> config.mak
|
||||
echo "#define GCC_MAJOR $gcc_major" >> $TMPH
|
||||
|
Loading…
Reference in New Issue
Block a user