Intel® Distribution for Python*
Support and discussions for achieving faster Python* applications and core computational packages.

please add rpath ext/lib

Becker__Neal
Beginner
181 Views

python lib depends on libraries in ext/lib (e.g., libimf.so)

It is difficult to build against libpython.so because this information is missing, causing my builds to fail.  I have to remember

to modify the build to add this to rpath.  I believe you can add this rpath to any libs that need it, so that users won't need to modify their build scripts.

Thanks,

Neal

0 Kudos
1 Reply
Robert_C_Intel
Employee
181 Views

We add rpath:

> objdump -x /localdisk/rscohn1/miniconda3/envs/idp_b1/lib/libpython2.7.so | grep -i RPATH
objdump: /nfs/fx/home/rscohn1/miniconda3/envs/idp_b1/ext/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.24-system.so)
  RPATH                $ORIGIN/.:$ORIGIN/../ext/lib

Could something be overriding the RPATH for you?

Reply