[vlc-commits] [Git][videolan/vlc][3.0.x] 2 commits: macosx: add rpath for Frameworks

David (@dfuhrmann) gitlab at videolan.org
Wed Jan 5 17:32:55 UTC 2022



David pushed to branch 3.0.x at VideoLAN / VLC


Commits:
939b0470 by Marvin Scholz at 2022-01-04T15:36:29+01:00
macosx: add rpath for Frameworks

The Frameworks folder was missing in the rpath, leading to Frameworks
like Sparkle requiring change of the install_name after it was built
instead of just using rpath properly.

- - - - -
0b23c96a by Marvin Scholz at 2022-01-04T15:36:29+01:00
contrib: sparkle: do not change install_name

Changing the install name is no longer necessary since
0831e42ecb6878bec2b3a0e07d56123a730d6a98
and doing so breaks the ad-hoc code signing leading to a broken
bundle and pseudo-bundle on arm64 which requires ad-hoc signing.

Fix #26127

- - - - -


2 changed files:

- bin/Makefile.am
- contrib/src/sparkle/rules.mak


Changes:

=====================================
bin/Makefile.am
=====================================
@@ -64,6 +64,7 @@ vlc_osx_static_OBJCFLAGS = $(AM_OBJCFLAGS) \
 vlc_osx_static_LDFLAGS = $(vlc_osx_LDFLAGS) -static
 vlc_osx_static_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/../lib/.libs/"
 vlc_osx_static_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/../src/.libs/"
+vlc_osx_static_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/../Frameworks/"
 vlc_osx_static_LDADD = $(vlc_osx_LDADD)
 if HAVE_BREAKPAD
 vlc_osx_static_LDFLAGS += -Wl,-framework,Breakpad


=====================================
contrib/src/sparkle/rules.mak
=====================================
@@ -19,7 +19,6 @@ sparkle: Sparkle-$(SPARKLE_VERSION).zip .sum-sparkle
 .sparkle: sparkle
 	# Build Sparkle and change the @rpath
 	cd $< && xcodebuild $(XCODE_FLAGS)
-	cd $< && install_name_tool -id @executable_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle build/Release/Sparkle.framework/Versions/A/Sparkle
 	# Install
 	cd $< && mkdir -p "$(PREFIX)/Frameworks" && \
 		rm -Rf "$(PREFIX)/Frameworks/Sparkle.framework" && \



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/307931a3d3282bb88bb7be5d7c7520de00a7a21f...0b23c96a037cb9572223778b6e08ee8345bd8a34

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/307931a3d3282bb88bb7be5d7c7520de00a7a21f...0b23c96a037cb9572223778b6e08ee8345bd8a34
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list