Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Nov 2, 2024
1 parent 44e092b commit 07fe0cb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ndk-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -9002,11 +9002,14 @@ EOF

##################################################################################

if [ "$LINUX" = 1 ] && [ -f '/lib/ld-musl-x86_64.so.1' ] ; then
cat >> init.sh <<EOF
if [ "$LINUX" = 1 ] ; then
if [ -f '/lib/ld-musl-x86_64.so.1' ] ; then
cat >> init.sh <<EOF
export LD_LIBRARY_PATH="\$NDKPKG_HOME/lib"
EOF

wfetch 'https://musl.cc/x86_64-linux-musl-native.tgz' --no-buffer
run $TAR xvf x86_64-linux-musl-native.tgz --strip-components=1 --no-same-owner
else
wfetch 'https://github.com/leleliu008/test/releases/download/2023.10.08/gcc-13.1.0-linux-glibc-x86_64.tar.xz' --no-buffer
run $TAR xf gcc-13.1.0-linux-glibc-x86_64.tar.xz --strip-components=1

Expand Down Expand Up @@ -9109,10 +9112,9 @@ crtendS.o%s $NDKPKG_HOME/core/sysroot/lib/crtn.o

EOF

ln -s ../wrapper-native-cc bin/cc
fi

#wfetch 'https://musl.cc/x86_64-linux-musl-native.tgz' --no-buffer
#run $TAR xvf x86_64-linux-musl-native.tgz --strip-components=1 --no-same-owner
ln -s ../wrapper-native-cc bin/cc
fi

##################################################################################
Expand Down Expand Up @@ -9660,7 +9662,7 @@ fi
fi
}

NDKPKG_VERSION=0.18.4
NDKPKG_VERSION=0.18.5

NDKPKG_ARG0="$0"
NDKPKG_ARG1="$1"
Expand Down

0 comments on commit 07fe0cb

Please sign in to comment.