Re: [ROOT] Two patches for Mac OS X build process

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Feb 14 2003 - 10:25:39 MET


Hi Remi,

I have put your two patches in CVS.
Please, MacOS fans, give your comments on these changes.

Rene Brun

Remi Mommsen wrote:
> 
> Hi,
> 
> I prepared two patches for the Mac OS X build of ROOT. I came across
> these issues while preparing a fink package (http://fink.sf.net) for
> ROOT.
> 
> fink.patch: The config/Makefile.macosx misuses the EXTRA_* entries for
> setting the fink specific paths (/sw/lib, /sw/include). A problem
> arises if you want to compile root with fixed paths using the
> HAVE_CONFIG compiler flag which is passed using the EXTRA_* entries.
> Therefore I added dedicated FINK_* flags to Makefile.macosx. They stay
> empty in case that there is no fink installation in /sw and therefore
> should not interfere with no-fink systems.
> 
> dylib_loading.patch: On Mac OS X there are two ways how to find shared
> libraries at run time. The linux way to define DYLD_LIBRARY_PATH
> pointing to the library path and the Apple preferred way to hardcode
> the full library path into the executable at linking time. ROOT
> currently uses the DYLD_LIBRARY_PATH which enables the relocation of
> the libraries after the linking. Apple uses for all applications the
> latter method having the advantage that the common Apple user does not
> have to fiddle around with environment variables. For the fink package
> I'm going to provide I will use the latter method. This patch
> introduces minor changes to config/Makefile.macosx and
> build/unix/makelib.sh to enable the hard-coded library path. I do not
> have any preferences on how ROOT should handle this by default. Any
> comments?
> 
> Cheers,
>                 Remi
> 
>   --------------------------------------------------------------------------------
>                  Name: fink.patch
>    fink.patch    Type: unspecified type (application/octet-stream)
>              Encoding: BASE64
> 
>   --------------------------------------------------------------------------------
>                           Name: dylib_loading.patch
>    dylib_loading.patch    Type: unspecified type (application/octet-stream)
>                       Encoding: BASE64
> 
>   --------------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> Q: How many kinds of physicists are there?
> A: Three. Those who can count and those who can't.
> 
> *********************************************************************
> Remigius K. Mommsen                 e-mail: mommsen@slac.stanford.edu
> University of California, Irvine       URL:    http://cern.ch/mommsen
> c/o SLAC                             voice:        ++1 (650) 926-3595
> 2575 Sand Hill Road #35             mobile:        ++1 (650) 387-1402
> Menlo Park, CA 94025, US               fax:        ++1 (650) 926-8522
> *********************************************************************



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET