1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:37:34 +00:00

Build: Remove gzip -k usage in PCI/USB ID files and crypt for OpenBSD

OpenBSD gzip does not have the -k flag to keep the original after
extraction. Work around this by copying the original gzip to the dest
and then extracting. A bit of a hack, but only needs to be done for the
first-time or rebuilds

OpenBSD provides crypt in libc, not libcrypt. Adjust if/else to check
for either and proceed accordingly

Remove outdated OpenBSD checks when building the toolchain
This commit is contained in:
tuftedocelot 2021-12-22 18:32:00 -06:00 committed by Brian Gianforcaro
parent ea0a002468
commit 5810467c97
3 changed files with 18 additions and 20 deletions

View file

@ -384,9 +384,6 @@ pushd "$DIR/Build/$ARCH"
echo "XXX build gcc and libgcc"
buildstep "gcc/build" "$MAKE" -j "$MAKEJOBS" all-gcc || exit 1
if [ "$SYSTEM_NAME" = "OpenBSD" ]; then
ln -sf liblto_plugin.so.0.0 gcc/liblto_plugin.so
fi
buildstep "libgcc/build" "$MAKE" -j "$MAKEJOBS" all-target-libgcc || exit 1
echo "XXX install gcc and libgcc"
buildstep "gcc+libgcc/install" "$MAKE" install-gcc install-target-libgcc || exit 1
@ -397,9 +394,6 @@ pushd "$DIR/Build/$ARCH"
buildstep "libstdc++/install" "$MAKE" install-target-libstdc++-v3 || exit 1
popd
if [ "$SYSTEM_NAME" = "OpenBSD" ]; then
cd "$DIR/Local/${ARCH}/libexec/gcc/$TARGET/$GCC_VERSION" && ln -sf liblto_plugin.so.0.0 liblto_plugin.so
fi
popd