🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38408

Re: How set xmkmf's Makefile's MAKE & CC?

#38408
From: Nhi Vanye
Date: Thu, 06 Dec 2001 16:38
49 lines
2590 bytes
$ from I.H.Gregory@herts.ac.uk -#133945 | sed "1,$s/^/> /"
>
>
>In article <3C0EC437.2A63D712@doe.carleton.ca>, Shing-Fat (Fred) Ma wrote:
>
>>I'm having difficulties building an application (tightVNC).  It is because
>>when I type xmkmf, it creates a bunch of Makefiles with CC and MAKE
>>pointing to nonGnu executables.  What what I've been able to ferrit out,
>>those paths are hardwired into the xmkmf executale when it is built.
>>Not being a superuser, I can't go to the locations pointed to by CC and
>>MAKE and create soft links to the gnu counterparts.   Manually changing
>>the Makefile's don't seem to work because they always get changed back.
>>
>>Is there a way to get xmkmf to create Makefile's with CC and MAKE
>>pointing at the gnu versions?
>
>What platform? On Solaris you just edit
>
>/usr/openwin/lib/X11/config/site.def
>
>Uncomment the following bit:
>
>#ifndef HasGcc2
>#define HasGcc2 YES
>#endif


He said he wasn't root so he couldn't do that.


You run xmkmf as normal, then override the variables on the make cmd line.

ie.

 % xmkmf
 % make CC=/usr/gnu/bin/gcc CXX=/usr/gnu/bin/gcc 

If you want to autonmate that, put it in a script.

Why don't you use the system compiler ?

>Ian Gregory

richard.

-- 
Richard Offer                         Technical Lead, Trust Technology.
"Specialization is for insects"
__________________________________________http://reality.sgi.com/offer/
Technical Details
Message-ID: <9uo6u6$dugdl$1@fido.engr.sgi.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!hub1.nntpserver.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!fido.engr.sgi.com!not-for-mail
References: <3C0EC437.2A63D712@doe.carleton.ca> <9unngu$c2j$2@helios.herts.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109f73,8b4f2fe7d3a45eb2
X-Google-Attributes: gid109f73,public
X-Google-Thread: 103734,8b4f2fe7d3a45eb2
X-Google-Attributes: gid103734,public
X-Google-ArrivalTime: 2001-12-06 08:38:30 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!hub1.nntpserver.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!fido.engr.sgi.com!not-for-mail
From: offer@sgi.com (Nhi Vanye)
Newsgroups: comp.windows.x,gnu.utils.help
Subject: Re: How set xmkmf's Makefile's MAKE & CC?
Date: 6 Dec 2001 16:38:30 GMT
Organization: Silicon Graphics Inc., Mountain View, CA
Lines: 50
Message-ID: <9uo6u6$dugdl$1@fido.engr.sgi.com>
References: <3C0EC437.2A63D712@doe.carleton.ca> <9unngu$c2j$2@helios.herts.ac.uk>
NNTP-Posting-Host: morgaine.engr.sgi.com
X-Trace: fido.engr.sgi.com 1007656710 14631349 163.154.6.121 (6 Dec 2001 16:38:30 GMT)
X-Complaints-To: news@fido.engr.sgi.com
NNTP-Posting-Date: 6 Dec 2001 16:38:30 GMT
X-Newsreader: trn 4.0-test61 (25 January 1997)