From 915eb468a368ea4782521753f954624a87704360 Mon Sep 17 00:00:00 2001 From: c vw Date: Mon, 1 Nov 2021 13:48:05 +0100 Subject: [PATCH] MacOS: do not include any libraries in app bundle (not even WDSP). --- Makefile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 3157f98..e35065a 100644 --- a/Makefile +++ b/Makefile @@ -595,9 +595,10 @@ debian: # start of piHPSDR) but also the radio settings and the midi.props file # are stored. # -# ONLY the wdsp library is bundled with the app, all others, including -# the SoapySDR support modules, must be installed separatedly. -# +# No libraries are included in the app bundle, so it will only run +# on the computer where it was created, and on other computers which +# have all libraries (including WDSP) and possibly the SoapySDR support +# modules installed. ############################################################################# .PHONY: app @@ -616,14 +617,4 @@ app: $(OBJS) $(AUDIO_OBJS) $(REMOTE_OBJS) $(USBOZY_OBJS) $(SOAPYSDR_OBJS) \ @cp MacOS/Info.plist pihpsdr.app/Contents @cp MacOS/hpsdr.icns pihpsdr.app/Contents/Resources/hpsdr.icns @cp MacOS/hpsdr.png pihpsdr.app/Contents/Resources -# -# Copy the WDSP library into the executable -# - @lib=`/usr/bin/otool -L pihpsdr.app/Contents/MacOS/pihpsdr | grep libwdsp | sed -e "s/ (.*//" | sed -e 's/ //'`; \ - libfn=`basename $$lib`; \ - cp "$$lib" "pihpsdr.app/Contents/Frameworks/$$libfn"; \ - chmod u+w "pihpsdr.app/Contents/Frameworks/$$libfn"; \ - /usr/bin/install_name_tool -id "@executable_path/../Frameworks/$$libfn" "pihpsdr.app/Contents/Frameworks/$$libfn"; \ - /usr/bin/install_name_tool -change "$$lib" "@executable_path/../Frameworks/$$libfn" pihpsdr.app/Contents/MacOS/pihpsdr -# ############################################################################# -- 2.45.2