[vlc-commits] test: Makefile.am: fix darwin RPATH for iOS sample

Alexandre Janniaux git at videolan.org
Sat Mar 13 13:06:34 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Mar 11 17:31:31 2021 +0100| [8b24c0e2fdce68d1f3a788c8d73037de3273e80b] | committer: Alexandre Janniaux

test: Makefile.am: fix darwin RPATH for iOS sample

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b24c0e2fdce68d1f3a788c8d73037de3273e80b
---

 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



More information about the vlc-commits mailing list