[cgma-dev] Opencascade directory missing from link line

Jed Brown jedbrown at mcs.anl.gov
Sun Dec 1 10:58:33 CST 2013


Iulian Grindeanu <iulian at mcs.anl.gov> writes:
> We recommend using the LD_LIBRARY_PATH;

LD_LIBRARY_PATH is irrelevant at build time.  It is an alternative to
setting RPATH in the build (-Wl,-rpath,/path/to/opencascade/lib with a
gcc-style toolchain), but not an alternative to a library path
(-L/path/to/opencascade/lib).  LIBRARY_PATH is formally an alternative
to -L, but it is almost never used.  Depending on environment variables
to locate libraries is fragile as hell, and totally non-standard for
autotools builds.

> (I know many hate it, especially because of interaction with
> autotools). Do you recommend a better solution? 

Pass -L/path/to/opencascade/lib.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20131201/016d97e1/attachment.pgp>


More information about the cgma-dev mailing list