From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Compile mode in emacs!! Date: Tue, 27 Mar 2007 14:10:34 +0200 Message-ID: References: <9688221.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174997469 25626 80.91.229.12 (27 Mar 2007 12:11:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2007 12:11:09 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: elxsian Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 27 14:11:02 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HWAVt-0001DB-Vj for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Mar 2007 14:10:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWAYF-0007xx-Ex for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Mar 2007 07:13:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWAXy-0007wd-VQ for help-gnu-emacs@gnu.org; Tue, 27 Mar 2007 08:13:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWAXw-0007sr-PN for Help-gnu-emacs@gnu.org; Tue, 27 Mar 2007 08:13:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWAXw-0007sU-HC for Help-gnu-emacs@gnu.org; Tue, 27 Mar 2007 07:13:04 -0500 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWAVa-0002no-5c for Help-gnu-emacs@gnu.org; Tue, 27 Mar 2007 08:10:38 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id F19086CD8EFB; Tue, 27 Mar 2007 14:10:36 +0200 (CEST) Original-Received: from [62.134.229.63] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.107 #114) id 1HWAVY-0004Mc-00; Tue, 27 Mar 2007 14:10:36 +0200 In-Reply-To: <9688221.post@talk.nabble.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42219 Archived-At: Am 27.03.2007 um 10:20 schrieb elxsian: > When I try to use the compile mode in emacs, it picks up the > default gcc > (/usr/bin/gcc). I need it to pick the gcc in a different location. > How do I > do that? Set path or PATH in the shell from which you launch GNU Emacs or in your login shell accordingly. Or set an environment variable CC that points to the compiler you want to use. Makefile can also set which compiler will be used ... And finally you can correct what M-x compile RET does by inserting in the read-area (mini-buffer), just an example: time nice +17 env USE_XCB=NO PATH=/Users/pete/Quellen/X11R7.1/util/ modular:/usr/local/bin:/sw/lib/freetype219/bin:/sw/lib/odcctools/bin:/ sw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/gwTeX/ bin/bin CFLAGS="-v -pipe -fPIC -O0 -mcpu=7450 -mtune=7450 -fno- common" CPPFLAGS="-v -no-cpp-precomp -I/usr/include/openssl -I/sw/ include/pango-1.0 -I/sw/lib/freetype219/include -I/sw/lib/freetype219/ include/freetype2 -I/sw/include/libpng12 -I/sw/include -I/usr/local/ include" LDFLAGS="-dead_strip -bind_at_load -L/sw/lib/freetype219/lib -L/sw/lib/fontconfig2/lib -L/sw/lib/ncurses -L/usr/local/lib -L/sw/ lib" ACLOCAL="aclocal -I /usr/local/share/aclocal -I /sw/share/ aclocal" PKG_CONFIG_PATH=/sw/lib/freetype219/lib/pkgconfig:/sw/lib/ fontconfig2/lib/pkgconfig:/usr/X11R7/lib/pkgconfig:/sw/lib/pkgconfig:/ sw/lib/system-openssl/lib/pkgconfig:/sw/share/pkgconfig:/usr/lib/ pkgconfig:/usr/local/lib/pkgconfig:/usr/local/clamXav/lib/pkgconfig util/modular/build1.sh -m /Users/pete/Quellen/X11R7.1/Mesa-6.5.2 -D / usr/X11R7 -n You see: not even make needs to used to compile some software ... -- Greetings Pete Remember: use logout to logout.