Hi Heinrich,
Unset RUNTIME_LDFLAGS in your Makefile or CONFIG.*. But then you must
setup LD_LIBRARY_PATH properly or use ldconfig.
However, what I do is to set INSTALL_LOCATION of base to a specific
installation directory, e.g. /usr/local/epics/base-3.14.8. This will be
used for rpath, not the source directory! Then I build base, pack the
installation directory and install it to all PCs.
However, for extensions like medm, I set EPICS_BASE to
/usr/local/epics/base, which is a symbolic link to the current base version.
> ls -l /usr/local/epics
total 40
lrwxrwxrwx 1 root root 11 Jun 1 02:36 base -> base-3.14.8
drwxrwxr-x 9 root sls 4096 Apr 12 2006 base-3.13.10
drwxr-xr-x 10 root sls 4096 Apr 12 2006 base-3.13.2
drwxr-xr-x 10 root sls 4096 Apr 12 2006 base-3.13.9
drwxrwxr-x 11 root sls 4096 Dec 14 2006 base-3.14.7
drwxrwxr-x 11 root sls 4096 Jul 17 13:23 base-3.14.8
drwxrwxr-x 11 root sls 4096 May 16 17:44 base-3.14.9
drwxrwxr-x 11 root sls 4096 Nov 23 2006 base-3.14.CVS
drwxrwxr-x 12 root sls 4096 Nov 17 2006 extensions
lrwxrwxrwx 1 root sls 10 Aug 17 2006 seq -> seq-2.0.10
drwxrwxr-x 7 root sls 4096 Jun 21 15:02 seq-2.0.10
drwxrwxr-x 3 root sls 4096 Apr 3 2006 seq-2.0.8
Thus, when I change the symbolic link to a new version of base, all
client programs will automatically use the new version.
Dirk
Heinrich du Toit wrote:
Hi
I'm trying to built an ubuntu package for EPICS :)
Just so that I don't have to compile the thing on every client out
there. - Some machines don't really need gcc and all that development
stuff
Anyways.
I'm having a bit of trouble with the way EPICS links to it's own .so
files.
(linux-x86)
It seems that the compile thing sets --rpath in the linker.
This way it links to a specific directory.
Problem is that this directory is not the same when built and installed.
So I would like to have it built without rpath set.
Then install the .so files to /usr/lib
And then normal ld.so stuff in linux can link it up.
My question is - how do I get EPICS to not link to a specific directory?
This seems like a chicken-egg problem..
As I want to compile the things linked to libraries that will only be
installed later. :(
Any help will be appreciated
-Heinrich
--
Dr. Dirk Zimoch
Paul Scherrer Institut, WBGB/006
5232 Villigen PSI, Switzerland
Phone +41 56 310 5182
- References:
- rpath compiling? Heinrich du Toit
- Navigate by Date:
- Prev:
rpath compiling? Heinrich du Toit
- Next:
Re: Possible Bug in 3.14.9 Access Security on mv2100 Dirk Zimoch
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
- Navigate by Thread:
- Prev:
rpath compiling? Heinrich du Toit
- Next:
RE: rpath compiling? Adams, Billy R. (LARC-D401B)[RAYTHEON TECHNICAL SERVICES CO]
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
|