[LLVMbugs] [Bug 6924] New: llvm-config --cflags and --includedir broken
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Apr 24 11:17:06 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6924
Summary: llvm-config --cflags and --includedir broken
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
--includedir only outputs the include dir for the sources:
/home/edwin/llvm-git/obj/../llvm/include
--cflags outputs both, but it also outputs a bunch of unneeded stuff (like -O2,
which can override an -O3 in another app, or _DEBUG which is not needed when
someone only uses the C bindings, etc.):
-I/home/edwin/llvm-git/obj/../llvm/include -I/home/edwin/llvm-git/obj/include
-D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2
-fomit-frame-pointer -fPIC
Same for cppflags it outputs _DEBUG:
-I/home/edwin/llvm-git/obj/../llvm/include -I/home/edwin/llvm-git/obj/include
-D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
So right now I had to hardcode the path to LLVM in mesa's llvmpipe to get it to
build (I didn't install LLVM as mesa expects).
llvm-config should be fixed to not output useless/bad flags, and only output
the strictly needed flags.
--
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