[LLVMdev] llvm 2.2 build problems

Erick Tryzelaar idadesub at users.sourceforge.net
Sun Feb 17 17:00:48 PST 2008


It turns out my problem was that I still had llvm-2.0 installed, and
I'm guessing the build script was  finding 2.0's libLLVMSupport.a
instead of the one that was just built. I think this happened because
macports (which I'm making the llvm build script for) specifies these
environment variables:

CFLAGS='-O2' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2'
CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0' F90FLAGS='-O2'
LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2' OBJC='/usr/bin/gcc-4.0'
INSTALL='/usr/bin/install' OBJCFLAGS='-O2' FFLAGS='-O2'
CC='/usr/bin/gcc-4.0'

If I run the build without CPPFLAGS='-I/opt/local/include' and
LDFLAGS='-L/opt/local/lib' specified it builds fine. Is there anything
that could be changed so that this conflict doesn't happen again?



More information about the llvm-dev mailing list