[vlc-devel] [PATCH 4/5] test: Makefile.am: fix darwin RPATH for iOS sample

Alexandre Janniaux ajanni at videolabs.io
Thu Mar 11 17:39:33 UTC 2021


The rpath value was incorrectly pointing to $(libdir) whereas the
executable is launched from a bundle and should have pointed to
@executable_path/Frameworks/ where the dylibs are installed.

It was working previously because the apple/bundle.sh script was
redefining the rpath manually through install_name_tool.
---
 test/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/Makefile.am b/test/Makefile.am
index 783e79239c..693acf0edc 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -294,7 +294,7 @@ endif
 
 vlccoreios_SOURCES = iosvlc.m
 vlccoreios_LDFLAGS = $(LDFLAGS_vlc) -Wl,-framework,Foundation,-framework,UIKit
-vlccoreios_LDFLAGS += -Xlinker -rpath -Xlinker "$(libdir)"
+vlccoreios_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/Frameworks/"
 vlccoreios_OBJCFLAGS = -fobjc-arc
 vlccoreios_LDADD = ../lib/libvlc.la ../src/libvlccore.la
 if HAVE_IOS
-- 
2.30.2



More information about the vlc-devel mailing list