[LLVMbugs] [Bug 6213] New: llvm-config --cflags differ when compiled using cmake/ configure

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 2 07:40:01 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6213

           Summary: llvm-config --cflags differ when compiled using
                    cmake/configure
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-config
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: xerxes at zafena.se
                CC: llvmbugs at cs.uiuc.edu


svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
mkdir llvm-configure
mkdir llvm-cmake

configure:
cd llvm-configure
../llvm/configure
make
xerxes at xerxes-J464X:~/llvmtest/llvm-configure/Debug/bin$ ./llvm-config --cflags
-I/home/xerxes/llvmtest/llvm-configure/../llvm/include
-I/home/xerxes/llvmtest/llvm-configure/include  -D_DEBUG -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fPIC

CMAKE:
cd llvm-cmake
cmake ../llvm
make
xerxes at xerxes-J464X:~/llvmtest/llvm-cmake/bin$ ./llvm-config --cflags
-I/home/xerxes/llvmtest/llvm/include -I/home/xerxes/llvmtest/llvm-cmake/include
  -D_GNU_SOURCE -fPIC -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -Wall -W
-Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long


as can be seen cmake generated llvm-config reports totally different cflags
than the configure generated dito.

some of the options really break a lot of external projects like the -pedantic


-- 
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