[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Small patch
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] Small patch |
Date: |
Thu, 31 Jan 2013 11:18:45 +0100 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) |
Le jeudi 31 janvier 2013 00:08:19, Ivo van Poorten a écrit :
> Error:
>
> $ ./configure --cc=tcc
> Binary directory /usr/local/bin
> TinyCC directory /usr/local/lib/tcc
> Library directory /usr/local/lib
> Include directory /usr/local/include
> Manual directory /usr/local/share/man
> Info directory /usr/local/share/info
> Doc directory /usr/local/share/doc/tcc
> Target root prefix
> Source path /home/ivo/git/tinycc
> C compiler tcc
> Target OS Linux
> CPU x86
> Big Endian no
> gprof enabled no
> cross compilers no
> use libgcc no
> Creating config.mak and config.h
> $ make
> [..snip..]
> gcc -c lib/bcheck.c -o bcheck.o -I. -I/home/ivo/git/tinycc -Wall -g -O2
> -mpreferred-stack-boundary=2 -m386 -malign-functions=0 -m32 cc1: error:
> unrecognized command line option "-m386"
>
>
> ----8<----8<----8<----8<----8<----8<----8<----8<----
>
> diff --git a/Makefile b/Makefile
> index d257464..0333ebe 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -232,7 +232,7 @@ libtcc1.a : FORCE
> lib/%/libtcc1.a : FORCE $(PROGS_CROSS)
> @$(MAKE) -C lib cross TARGET=$*
> bcheck.o : lib/bcheck.c
> - gcc -c $< -o $@ $(CPPFLAGS) $(CFLAGS)
> + $(CC) -c $< -o $@ $(CPPFLAGS) $(CFLAGS)
> FORCE:
>
> # install
Unfortunetely it still breaks because of a wrong detection of GCC_MAJOR.
Because the test to determine the major version number of gcc fails, GCC_MAJOR
is set to 2. I made the following patch but I'm still not sure how to handle
flags when the compiler is not gcc.
Shall no flag be set and the project fail because of missing -I for instance?
I don't have a clear idea for now.
Best regards,
Thomas
cc_agnostic_tcc_build.patch
Description: Text Data
signature.asc
Description: This is a digitally signed message part.
- Re: [Tinycc-devel] Small patch, (continued)
- Re: [Tinycc-devel] Small patch, Thomas Preud'homme, 2013/01/31
- Re: [Tinycc-devel] Small patch, Thomas Preud'homme, 2013/01/31
- Re: [Tinycc-devel] Small patch, Vincent Lefevre, 2013/01/31
- Re: [Tinycc-devel] Small patch, grischka, 2013/01/31
- Re: [Tinycc-devel] Small patch, Vincent Lefevre, 2013/01/31
- Re: [Tinycc-devel] Small patch, grischka, 2013/01/31
- Re: [Tinycc-devel] Small patch, Vincent Lefevre, 2013/01/31
- Re: [Tinycc-devel] Small patch, Michael Matz, 2013/01/31
- Re: [Tinycc-devel] Small patch, Vincent Lefevre, 2013/01/31
- Re: [Tinycc-devel] Small patch, grischka, 2013/01/31
Re: [Tinycc-devel] Small patch,
Thomas Preud'homme <=
Re: [Tinycc-devel] Small patch, Domingo Alvarez Duarte, 2013/01/31