[CEDET-devel] System include path problem.
Brought to you by:
zappo
From: Lute K. <Lut...@xs...> - 2009-04-04 09:44:42
|
Hello everybody, I'm giving CEDET 1.0pre6 a try and got some funky results for the system include paths set by semantic-gcc-setup: /usr/include/ /usr/usr/include/c++/4.3/ /usr/usr/include/c++/4.3/x86_64-linux-gnu/ I would expect the following: /usr/include/ /usr/include/c++/4.3/ /usr/include/c++/4.3/x86_64-linux-gnu/ The patch below fixed the problem for me, but I'm not sure if it is the right place to fix it. Regards, Lute. *** cedet-1.0pre6/semantic/bovine/semantic-gcc.el~ 2009-03-01 03:56:36.000000000 +0100 --- cedet-1.0pre6/semantic/bovine/semantic-gcc.el 2009-04-04 11:14:57.000000000 +0200 *************** *** 98,106 **** (cdr (assoc '--host fields)))) (prefix (cdr (assoc '--prefix fields))) (include-root (concat prefix "/include")) ! (include-cpp (concat prefix ! (or (cdr (assoc '--with-gxx-include-dir fields)) ! (concat "/include/c++/" ver)))) (include-cpp-sys (concat include-cpp "/" host)) (cppconfig (concat include-cpp-sys "/bits/c++config.h")) ) --- 98,105 ---- (cdr (assoc '--host fields)))) (prefix (cdr (assoc '--prefix fields))) (include-root (concat prefix "/include")) ! (include-cpp (or (cdr (assoc '--with-gxx-include-dir fields)) ! (concat prefix "/include/c++/" ver))) (include-cpp-sys (concat include-cpp "/" host)) (cppconfig (concat include-cpp-sys "/bits/c++config.h")) ) |