[LLVMbugs] [Bug 8220] New: llvm-config prints unnecessary cflags
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Sep 24 13:12:17 PDT 2010
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: unassignedbugs at nondot.org
ReportedBy: nobled at dreamwidth.org
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list