pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RPath usage in CoreCLR



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I'm trying to with the installation target of CoreCLR on NetBSD
(wip/coreclr-git).

It uses nonstandard distribution paths -- everything is installed
under single subprefix -- I went for $PREFIX/CoreCLR. To make it work
I need to set RPATH to $PREFIX/CoreCLR, $PREFIX/CoreCLR/bin and
$PREFIX/CoreCLR/Loader/NativeLibs...

I don't know what I'm doing wrong, but I always get RPATH value set to
only $PREFIX/lib.

I was trying to extend LDFLAGS with the following base arguments

CORECLR_PREFIX= ${PREFIX}/CoreCLR

# Handle subprefix
LDFLAGS+=       ${COMPILER_RPATH_FLAG}${CORECLR_PREFIX:Q}
LDFLAGS+=
${COMPILER_RPATH_FLAG}${CORECLR_PREFIX:Q}/Loader/NativeLibs
LDFLAGS+=       ${COMPILER_RPATH_FLAG}${CORECLR_PREFIX:Q}/bin

with additional -L flags, but without success.

Here is a part of clang++ call during build:

/usr/pkg/bin/clang++  -fPIC -O2 -g -ggdb -I/usr/pkg/include
- -I/usr/include -g -ggdb -Wall -Wno-null-conversion -std=c++11 -g -O0
- -Wl,-R/usr/pkg/CoreCLR -L/usr/pkg/CoreCLR
- -Wl,-R/usr/pkg/CoreCLR/Loader/NativeLibs
- -L/usr/pkg/CoreCLR/Loader/NativeLibs -Wl,-R/usr/pkg/CoreCLR/bin
- -L/usr/pkg/CoreCLR/bin -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
- -Wl,-R/usr/lib -shared -Wl,-soname,libsosplugin.so -o libsosplugin.so
CMakeFiles/sosplugin.dir/sosplugin.cpp.o
CMakeFiles/sosplugin.dir/soscommand.cpp.o
CMakeFiles/sosplugin.dir/setclrpathcommand.cpp.o
CMakeFiles/sosplugin.dir/setsostidcommand.cpp.o
CMakeFiles/sosplugin.dir/coreruncommand.cpp.o
CMakeFiles/sosplugin.dir/debugclient.cpp.o
CMakeFiles/sosplugin.dir/__/__/__/coreclr/hosts/unixcorerun/corerun.cpp.
o
CMakeFiles/sosplugin.dir/__/__/__/coreclr/hosts/unixcoreruncommon/coreru
ncommon.cpp.o
/tmp/pkgsrc-tmp/wip/coreclr-git/work/.buildlink/lib/liblldb.so

RPATH should be set to all the paths... but it's still only limited to
/usr/pkg/lib.

Thank you for your pointers!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWyl1yAAoJEEuzCOmwLnZsQY0P/jlc/FXuhtX3wz7itIy+GYfE
f0t6opAd7/c4O02ArH8AkSypnois9Q5j2c8yxOjeHs8/t2y865XWbI+29TVnuTVd
3WMM+ZbSnVE6grNtRyEXxdeZ+4CJSuRzkIqzJBEgcZLbJOtMJfz1EMnJP//uhwbR
frELqnKfFkuukKebhVf6J9uBK1eqKYlaiWVUpd7DC55Koo0U0jNaGTYSV8+98Znu
5eKSiN75EdzBHa+CQKtCgCm+BmfQvn0bdfkt+M6IctdDh1K/VU+LoiIPPqMLTZg8
wgYG7sHWBHV8o0byKeeWYTbl14k9VUOQWch7+o6sxF3AJWGrfgwaH8wG+2GUOFE3
6+Pi2FPkSUrfMbgPu+JxTkdyayCxZPWxnMbOShcg3Ikeh9EitYqlPDsVpZ4fk1N9
YcPHlx7tx7DmEZXFQIGdcgjikKB8vn/n1lzxSliK40muo5URmiVvgRGwNyFWFWFr
3lhiG9d+szJPQBZg+f3A0WfnMrIVED0Qw1ylzDHFvrLWP7YUCQ33VM38/we7OEfl
USOLlgJVJPafXg3UacZRbPaS3bFknqu0DZIH0If7gMCWyrKb7g8N3m0iQkGZjv/X
QfxIjCeLOrNScR+v8DokxexEGiOVORf0pS4F0G0W2minQS9frdCXuTLjewWj08JH
7biuJevKTnHOLv1WP85l
=5jIT
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index