[LLVMdev] Re: Building CFE on MinGW

Greg Pettyjohn gregp at ccs.neu.edu
Sat Apr 22 18:54:32 PDT 2006


I'm using a little shell script:


BUILD_ROOT=/home/llvm-1.7/cfrontend
PREFIX="$BUILD_ROOT/install"
LOCAL_BUILD_DIR="$BUILD_ROOT/build"
SOURCE_DIR="$BUILD_ROOT/src"

echo $__me: Building $TARGET
echo $__me: BUILD_ROOT == $BUILD_ROOT
echo $__me: SOURCE_DIR == $SOURCE_DIR
echo $__me: LOCAL_BUILD_DIR == $LOCAL_BUILD_DIR
echo $__me: PREFIX == $PREFIX

  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-"

echo $__me: confopts == $confopts

   if [ -e $LOCAL_BUILD_DIR ]; then rm -rf $LOCAL_BUILD_DIR; fi
   mkdir $LOCAL_BUILD_DIR && cd $LOCAL_BUILD_DIR

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

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

On Sun, 23 Apr 2006, Oscar Fuentes wrote:

> Greg Pettyjohn <gregp at ccs.neu.edu> writes:
>
> > Is the MinGW user's list on the web?
>
> Look on www.mingw.org -> mailing list
>
> > Can you give me a link to the thread?
>
> Sorry, no time for that. Once on the mailing list archives, do a
> search for 'configure'.
>
> > (What's IIRC?)
>
> If I Remember Correctly.
>
> By the way, what's your configure command?
>
> --
> Oscar
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list