Skip to content

Commit

Permalink
Exclude pthread and libdl from AppImage
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake committed Jan 9, 2020
1 parent 1333b45 commit 3421ab9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Scripts/dist-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function skip()
function embed_soapysdr()
{
SOAPYSDRVER=`ldd $APPIMAGEROOT/usr/bin/SigDigger | grep Soapy | sed 's/ =>.*$//g' | sed 's/^.*\.so\.//g'`
EXCLUDED='libc\.so\.6'
EXCLUDED='libc\.so\.6|libpthread|libdl'
try "Testing SoapySDR version..." [ "$SOAPYSDRVER" != "" ]
try "Testing SoapySDR dir..." test -d "/usr/lib/`uname -m`-linux-gnu/SoapySDR/modules$SOAPYSDRVER"
if [ ! -L "$APPIMAGEROOT"/usr/lib/`uname -m`-linux-gnu ]; then
Expand All @@ -91,6 +91,7 @@ function embed_soapysdr()
if [ ! -f "$APPIMAGEROOT"/usr/lib/"$name" ] && ! echo "$i" | egrep "$EXCLUDED" > /dev/null; then
try "Bringing $name..." cp -L "$i" "$APPIMAGEROOT"/usr/lib
else
rm -f "$APPIMAGEROOT"/usr/lib/"$name"
skip "Skipping $name..."
fi
done
Expand Down

0 comments on commit 3421ab9

Please sign in to comment.