Thomas Preud'homme wrote:
I suggest we include it and then release tomorrow once people checked I didn't break something with my last patches.
+if ! $cc -o print_env_info print_env_info.c 2>/dev/null ; then echo big/little test failed
Actually maybe: echo "You don't have an usable compiler" If we cannot compile that file then how could we compile TCC.
print_env_info
I'd suggest something "config-...", config-info/print/env or some such. That it sorts near to configure in directory listing.
if test -n "$multiarch_triplet" ; then echo "#define CONFIG_MULTIARCHDIR \"$multiarch_triplet\"" >> $TMPH fi if test -n "$lddir" ; then echo "#define CONFIG_LDDIR \"$lddir\"" >> $TMPH fi
If #defined unconditionally overriding on the compiler command line doesn't work any more. Maybe you can use configure:print_var2().
#ifndef CONFIG_LDDIR -# ifdef CONFIG_MULTIARCHDIR -# define CONFIG_LDDIR "lib/" CONFIG_MULTIARCHDIR -# else -# define CONFIG_LDDIR "lib" -# endif -#endif
CONFIG_LDDIR is now undefined in tcc. Leaving "lib" as default cannot hurt IMO (even if it's just to keep the section readable).
for opt do eval opt=$opt case "$opt" in
The eval messes up with ./configure --extra-cflags="-Os -Wall"
libc_dir="$(ldd ./print_env_info | grep libc.so | sed 's|[^/]*/\(.*/\)[^/]*|\1|')"
ldd doesn't work on my MSYS. I cannot complain because I just have the downstripped version for git, but maybe you can use gcc -print-file-name=crt1.o or such. Thanks, --- grischka _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel