public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* how to add RPATH and RUNPATH to gcc binaries themselves
@ 2008-01-05 17:13 Poor Yorick
  0 siblings, 0 replies; only message in thread
From: Poor Yorick @ 2008-01-05 17:13 UTC (permalink / raw)
  To: gcc-help

I compiled and installed gcc 4.2.2 on an NFS mount accessible to a compute grid.  I have compiled approximately 50 other apps with this gcc instance, baking RPATH into the binaries with the following environment setting:


	LDFLAGS="-L$base/lib -Wl,-rpath,$base/lib -Wl,--enable-new-dtags ${LDFLAGS-}"                                            

I built and installed gcc itself using this same environment, but gcc, gforftran,etc., did not get an RPATH or RUNPATH.  LDFLAGS is usually sufficient for this  purpose, but not when building gcc, it seems.  What is the best way to get RPATH and RUNPATH into gcc itself?

-- 
Yorick

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-04  6:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-05 17:13 how to add RPATH and RUNPATH to gcc binaries themselves Poor Yorick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).