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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
--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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs