[LLVMdev] Re: Building CFE on MinGW

Oscar Fuentes oscarfv at telefonica.net
Sun Apr 23 01:54:50 PDT 2006


Greg Pettyjohn <gregp at ccs.neu.edu> writes:

> I'm using a little shell script:
[snip]
>   confopts="--prefix=$PREFIX"
>   confopts="$confopts --disable-threads"
>   confopts="$confopts --disable-nls"
>   confopts="$confopts --disable-shared"
>   confopts="$confopts --enable-languages=c,c++"
>   confopts="$confopts --disable-c-mbchar"
>   confopts="$confopts --program-prefix=llvm-"

Try adding --disable-fixincludes too.

[snip]

>    ../src/configure --srcdir=$SOURCE_DIR
> --includedir=/C/msys/1.0/mingw/include --libdir=/C/msys/1.0/mingw/lib
> --target=mingw32 $confopts

--includedir and --libdir should be Windows directories
(c:/msys/...). MinGW does not understand Cygwin/MSYS paths.

Is --srcdir really needed?

>    make CFLAGS=-O LIBCFLAGS+=-g LIBCFLAGS+=-O2 LIBCXXFLAGS+=-g
> LIBCXXFLAGS+=-O2 LIBCXXFLAGS+=-fno-implicit-templates LDFLAGS=-s all

I don't know about LLVM, but shouldn't this be
make ... bootstrap
as per the gcc build instructions?

-- 
Oscar




More information about the llvm-dev mailing list