Re: AMBER: experiences with compiling amber9 for FreeBSD

From: M. L. Dodson <bdodson.scms.utmb.edu>
Date: Fri, 5 May 2006 17:00:10 -0500

On Fri, May 05, 2006 at 02:10:51PM -0700, Ross Walker wrote:
>
>
> > However, some of the leaf makefiles hardwire the "make" program
> > name, so that will trip you up. My solution was to temporarily
> > softlink /usr/local/bin/gmake to /usr/local/bin/make. (This is
> > known as a "hack" :-) Make sure that /usr/local/bin comes before
> > /usr/bin in your PATH. Then the system builds as described.
> > Don't forget to rm /usr/local/bin/make when you are finished or
> > your ports and buildworld systems will quit working.
>
> On A side note can one not just do:
>
> alias make=gmake
>
> Then once you logout the alias will disappear. If this works we may just be
> able to tweak the configure script slightly to do this.
>
> All the best
> Ross
>

I'll give it a try, but I don't think an alias (I'm assuming csh
semantics) will survive deep down into a recursive make
invocation. I tried similar (but not identical) tricks to try to
avoid the extremely hackish workaround and none worked.

As an aside, the FreeBSD port infrastructure has a USE_GMAKE
variable that should have worked if the leaf makefiles had been
written as

        cd ../somedir; $(MAKE) something

but since the string 'make' is hard coded, that did not work as it
picks up /usr/bin/make, not /usr/local/bin/gmake. (Unless you use
the hack which puts /usr/local/bin/make -> /usr/local/bin/gmake
first in the PATH.)

Thanks for the thought,
Bud
-- 
M. L. Dodson
Personal:       mldodson-at-houston-dot-rr-dot-com
Work:           bdodson-at-scms-dot-utmb-dot-edu
Work: four_zero_nine-772-2178             FAX: four_zero_nine-747-8608
-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Sun May 07 2006 - 06:07:07 PDT
Custom Search