Re: [CEDET-devel] small patch: semantic-gcc-setup
Brought to you by:
zappo
From: Tobias H. <mat...@gm...> - 2009-02-16 20:50:56
|
Hi, small fix to make it work with Gentoo. gcc -v outputs: Using built-in specs. Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.3 p1.0, pie-10.1.5' Thread model: posix gcc version 4.3.3 (Gentoo 4.3.3 p1.0, pie-10.1.5) --- semantic/bovine/semantic-gcc.el 12 Feb 2009 02:07:19 -0000 1.8 +++ semantic/bovine/semantic-gcc.el 16 Feb 2009 20:45:53 -0000 @@ -98,9 +98,8 @@ (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 (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")) ) On Thu, Feb 12, 2009 at 3:09 AM, Eric M. Ludlam <er...@si...> wrote: > Thanks, > > I have checked in your change. I don't have the most recent GCC, so > if there are other useful missing features, this is the type of thing > to do. > > Eric > >>>> Alastair Rankine <ar...@in...> seems to think that: >>Hi, >> >>Just a small patch for semantic-gcc-setup to recognise the --with-gxx- >>include-dir fields for c++ headers. On my Mac OS X system, the >>compiler is 4.0.1 but the headers are installed in /usr/include/c++/ >>4.0.0. This patch seems to fix that... >> >> >>=== modified file '.emacs.d/lisp/cedet/semantic/bovine/semantic-gcc.el' >>--- old/.emacs.d/lisp/cedet/semantic/bovine/semantic-gcc.el 2009-01-26 >>22:50:40 +0000 >>+++ new/.emacs.d/lisp/cedet/semantic/bovine/semantic-gcc.el 2009-02-11 >>12:56:26 +0000 >>@@ -98,7 +98,9 @@ >> (cdr (assoc '--host fields)))) >> (prefix (cdr (assoc '--prefix fields))) >> (include-root (concat prefix "/include")) >>- (include-cpp (concat include-root "/c++/" ver)) >>+ (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")) >> ) > [ ... ] > > -- > Eric Ludlam: er...@si... > Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Cedet-devel mailing list > Ced...@li... > https://lists.sourceforge.net/lists/listinfo/cedet-devel > |