Hi again,
Am 01.11.25 um 13:37 schrieb Rene Engelhard:
So basically
diff --git a/rust_uno/Library_rust_uno-example.mk
b/rust_uno/Library_rust_uno-example.mk
index 4f55a5b28296..fc4d9a3d1a7f 100644
--- a/rust_uno/Library_rust_uno-example.mk
+++ b/rust_uno/Library_rust_uno-example.mk
@@ -30,8 +30,11 @@ $(eval $(call gb_Library_use_libraries,rust_uno-example, \
$(eval $(call gb_Library_use_sdk_api,rust_uno-example))
$(call gb_Library_get_target,rust_uno-example): $(call
gb_CustomTarget_get_target,rust_uno/cargo)
+$(eval $(call gb_Library_add_ldflags,rust_uno-example,\
+ -Wl,-rpath,'$$ORIGIN' \
With proper makefile escaping here, of course, currently doing:
-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN
(as per e.g.
external/libassuan/ExternalProject_libassuan.mk:
-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
external/libassuan/UnpackedTarball_libassuan.mk: $(if $(filter
LINUX,$(OS)),external/libassuan/rpath.patch) \
external/libetonyek/ExternalProject_libetonyek.mk:
-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
)
which results in
rene@frodo:~/LibreOffice/git/master/workdir/Extension/rust_uno-example/root$
objdump -p rust_uno-example.uno.so | grep NEED
NEEDED librust_uno.so
NEEDED libuno_cppu.so.3
NEEDED libuno_cppuhelpergcc3.so.3
NEEDED libuno_sal.so.3
NEEDED libstdc++.so.6
NEEDED libm.so.6
NEEDED libgcc_s.so.1
NEEDED libc.so.6
VERNEED 0x0000000000001878
VERNEEDNUM 0x0000000000000006
rene@frodo:~/LibreOffice/git/master/workdir/Extension/rust_uno-example/root$
objdump -p rust_uno-example.uno.so | grep ORI
RUNPATH $ORIGIN
Will report back when the build finished and I tested it without the
LD_LIBRARY_PATH workaround
Regards,
Rene