pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem setting runpath
2+ messages / 2 participants
[nested] [flat]

* Problem setting runpath
@ 2005-03-26 21:46 Joe Halpin <joe.halpin@comcast.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Joe Halpin @ 2005-03-26 21:46 UTC (permalink / raw)
  To: pgsql-admin

I'm on Solaris 10 (Intel) using gcc. I'd like to add /usr/local/lib to 
the built-in runpath. I've tried

1. setting LD_RUN_PATH=/usr/local/lib before running configure (also 
tried adding this to the command line for configure).

2. Adding LDFLAGS='-Wl,--runpath,/usr/local/lib' to the configure 
command line.

The upshot is that /usr/local/lib doesn't get included in the runpath, 
and I have to set LD_LIBRARY_PATH to get things to work. I'd rather not 
do that because this will be used in an environment where users set lots 
of different LD_LIBRARY_PATH in their shell startup files.

I know I can use crle to add /usr/local/lib systemwide, but that makes 
me nervous, and I'd rather get runpath to work if I can.

How can I tell configure to add /usr/local/lib to runpath, and have that 
built into the executables?

Thanks

Joe



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Problem setting runpath
@ 2005-03-26 21:50 Joe Halpin <j.p.h@comcast.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Joe Halpin @ 2005-03-26 21:50 UTC (permalink / raw)
  To: pgsql-admin

I'm on Solaris 10 (Intel) using gcc. I'd like to add /usr/local/lib to
the built-in runpath. I've tried

1. setting LD_RUN_PATH=/usr/local/lib before running configure (also
tried adding this to the command line for configure).

2. Adding LDFLAGS='-Wl,--runpath,/usr/local/lib' to the configure
command line.

The upshot is that /usr/local/lib doesn't get included in the runpath,
and I have to set LD_LIBRARY_PATH to get things to work. I'd rather not
do that because this will be used in an environment where users set lots
of different LD_LIBRARY_PATH in their shell startup files.

I know I can use crle to add /usr/local/lib systemwide, but that makes
me nervous, and I'd rather get runpath to work if I can.

How can I tell configure to add /usr/local/lib to runpath, and have that
built into the executables?

Thanks

Joe




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-03-26 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-26 21:46 Problem setting runpath Joe Halpin <joe.halpin@comcast.net>
2005-03-26 21:50 Problem setting runpath Joe Halpin <j.p.h@comcast.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox