Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Oct 2, 2024
1 parent 5694333 commit 1eb5f8c
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions ppkg
Original file line number Diff line number Diff line change
Expand Up @@ -5820,18 +5820,22 @@ $PACKAGE_DO12345
run bsdtar xvf "$FILENAME" -C "$TARGET_PLATFORM_SPEC"
done

#run rm -rf "$TARGET_PLATFORM_SPEC/bin"
#run rm -rf "$TARGET_PLATFORM_SPEC/usr/bin"
#run rm -rf "$TARGET_PLATFORM_SPEC/sbin"
#run rm -rf "$TARGET_PLATFORM_SPEC/usr/sbin"
cd "$TARGET_PLATFORM_SPEC/usr/lib"

# https://github.com/mesonbuild/meson/issues/5390
printf '%s\n' 'INPUT(-lc)' > "$TARGET_PLATFORM_SPEC/usr/lib/libdl.a"
printf '%s\n' 'INPUT(-lc)' > "$TARGET_PLATFORM_SPEC/usr/lib/librt.a"
printf '%s\n' 'INPUT(-lc)' > "$TARGET_PLATFORM_SPEC/usr/lib/libcrypt.a"
printf '%s\n' 'INPUT(-lc++)' > "$TARGET_PLATFORM_SPEC/usr/lib/libstdc++.a"
printf '%s\n' 'INPUT(-lcompiler_rt -lc++abi)' > "$TARGET_PLATFORM_SPEC/usr/lib/libgcc.a"
printf '%s\n' 'INPUT(-lcompiler_rt -lc++abi)' > "$TARGET_PLATFORM_SPEC/usr/lib/libgcc_s.a"
printf '%s\n' 'INPUT(-lc)' > libdl.a
printf '%s\n' 'INPUT(-lc)' > librt.a
printf '%s\n' 'INPUT(-lc)' > libcrypt.a
printf '%s\n' 'INPUT(-lc++)' > libstdc++.a
printf '%s\n' 'INPUT(-lcompiler_rt -lc++abi)' > libgcc.a
printf '%s\n' 'INPUT(-lcompiler_rt -lc++abi)' > libgcc_s.a

for f in lib*.so.*
do
ln -s "$f" "${f%.so.*}.so"
done

cd -

run touch "$TARGET_PLATFORM_SPEC/ok"
;;
Expand Down Expand Up @@ -9251,7 +9255,7 @@ fi
fi
}

PPKG_VERSION=0.10.0
PPKG_VERSION=0.10.1

PPKG_ARG0="$0"
PPKG_ARG1="$1"
Expand Down

0 comments on commit 1eb5f8c

Please sign in to comment.