how to add RPATH and RUNPATH to gcc binaries themselves

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux