[visit-developers] $$ORIGIN in rpath directive to linker

Mark Miller miller86 at llnl.gov
Tue Oct 21 00:50:22 EDT 2008


Hi All,

I probably missed a discussion or update notice about this. For a while
now, as I've watched VisIt compile (one of my most favorite activities
in the whole wide world), I've noticed that we are getting --rpath
directives when linking .so's and executables that include a reference
to a (shell) variable $ORIGIN as in...

g++ -shared -o /home/miller/visit/trunk/src/plugins/databases/libESiloDatabase_par.so \
   -L/home/miller/visit/trunk/src/lib -L/misc/gapps/mpich/1.2.4/Linux/serial/64/debug/lib \
   -L/usr/X11R6/lib -Wl,--rpath,\$ORIGIN/../../lib -L/home/miller/visit/trunk/src/plugins/databases \
   SiloPluginInfo.o SiloCommonPluginInfo.o avtSiloOptions.o SiloEnginePluginInfo_par.o \
   avtSiloFileFormat_par.o avtSiloWriter_par.o  -L/usr/gapps/silo/4.6.2/i686_Linux_ELsmp/lib -lsilo

What puzzles me is I don't see anywhere where ORIGIN is set to some
value. Also, is it truly a shell variable, or a make variable?

Mark

-- 
Mark C. Miller, Lawrence Livermore National Laboratory
email: mailto:miller86 at llnl.gov
(M/T/W) (925)-423-5901 (!!LLNL BUSINESS ONLY!!)
(Th/F)  (530)-753-8511 (!!LLNL BUSINESS ONLY!!)



More information about the visit-developers mailing list