http://llvm.org/bugs/show_bug.cgi?id=8220
Summary: llvm-config prints unnecessary cflags
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-config
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
llvm-config --cflags always prints exactly what LLVM itself was built with,
instead of printing just what other projects need to compile against it. This
can cause problems when trying to compile with a different -O level:
http://lists.freedesktop.org/archives/mesa-dev/2010-September/003216.html
With a SVN r114337 Release+Asserts build, llvm-config gives this:
my $CPPFLAGS = q{ -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS};
my $CFLAGS = q{ -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS -O3 -fomit-frame-pointer -fPIC};
my $CXXFLAGS = q{ -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti
-fPIC -Woverloaded-virtual -Wcast-qual};
my $LDFLAGS = q{};
How many of these are actually needed to include and link against LLVM?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs