Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jogshy
New Contributor I
72 Views

Deploy TBB for linux as private .so

Jump to solution
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
72 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

2 Replies
adunsmoor
New Contributor I
73 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

jogshy
New Contributor I
72 Views
Oh, nice! Like the Mac's install_name_tool @executablepath then !
Reply