次のように を指定したいrpath
:
'ldflags': [
'-rpath', '/usr/$LIB/myprog',
],
しかし、結果のバイナリを確認すると、別のものがあることがわかりますrpath
:
$ objdump -x binary | grep RPATH
RPATH /usr//myprog:$ORIGIN/lib/
私が欲しいのは:/usr/$LIB/myprog:...
次のように を指定したいrpath
:
'ldflags': [
'-rpath', '/usr/$LIB/myprog',
],
しかし、結果のバイナリを確認すると、別のものがあることがわかりますrpath
:
$ objdump -x binary | grep RPATH
RPATH /usr//myprog:$ORIGIN/lib/
私が欲しいのは:/usr/$LIB/myprog:...