EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Static Linking...
From: Andrew Johnson <[email protected]>
To: [email protected]
Cc: Eric Norum <[email protected]>
Date: Thu, 21 Jul 2011 14:21:39 -0500
Hi David,

On 2011-07-21 Eric Norum wrote:
> The latter -- there's no way to static link (well, no *easy* way) on OS X.
> 
> On Jul 21, 2011, at 11:25 AM, David Dudley wrote:
> > I seem to have discovered a problem on a MAC darwin-x86 where I can’t
> > static link programs.
> >
> > Whenever I try to set STATIC_BUILD=YES in the CONFIG_SITE file, and do a
> > clean rebuild, it fails when it’s trying to link antelope, saying that it
> > can’t find the crt0.0 library.

That's the C run-time library, which Apple only provide as a dynamically-
linked library.

You should however be able to set SHARED_LIBRARIES=NO instead, and in your 
Base top directory do a 'make distclean' to remove all of the old .dylib files 
before you rebuild Base again.  That will statically link in all of the EPICS 
libraries into the binaries it builds, but will still dynamically link the 
system libraries and thus overcome the above problem.

HTH,

- Andrew
-- 
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham


Replies:
Re: Static Linking... David Dudley
References:
Static Linking... David Dudley
Re: Static Linking... Eric Norum

Navigate by Date:
Prev: Re: Static Linking... Eric Norum
Next: Re: Static Linking... David Dudley
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Static Linking... Eric Norum
Next: Re: Static Linking... David Dudley
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·