Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Deploy TBB for linux as private .so

jogshy
New Contributor I
386 Views
I'm working with OpenSUSE 11.3 which has no TBB available from their package system, so I must deploy the TBB DLLs as private assembly.

I don't want to copy them to /usr/lib nor to add my app's install path to LD_LIBRARY_PATH to avoid conflicts so, ideally, I want to copy the DLLs as:

[PlaceWhereTheUserInstallsMyApp]/MyApp -> My executable file
[PlaceWhereTheUserInstallsMyApp]/libtbb.so

I've seen GCC can use the "rpath" option but I'm not sure how to use it properly and I could not find any reference about how to deploy the TBB's dynamic libraries under linux in the TBB's doc.

Help, please.
thx
0 Kudos
1 Solution
adunsmoor
New Contributor I
386 Views
Using rpath works well. You can use a special variable in the rpath called $ORIGIN to specific a location relative to your executable. There is a nice writeup here:
Using ORIGIN for a dynamic runtime library search path

View solution in original post

0 Kudos
2 Replies
adunsmoor
New Contributor I
387 Views
Using rpath works well. You can use a special variable in the rpath called $ORIGIN to specific a location relative to your executable. There is a nice writeup here:
Using ORIGIN for a dynamic runtime library search path
0 Kudos
jogshy
New Contributor I
386 Views
Oh, nice! Like the Mac's install_name_tool @executablepath then !
0 Kudos
Reply