mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Toolchain: Explicitly enable LTO, fix build on OpenBSD
This commit is contained in:
parent
0d215b5548
commit
4a2209d0e0
Notes:
sideshowbarker
2024-07-18 22:20:37 +09:00
Author: https://github.com/jcs Commit: https://github.com/SerenityOS/serenity/commit/4a2209d0e05 Pull-request: https://github.com/SerenityOS/serenity/pull/5337
1 changed files with 7 additions and 2 deletions
|
@ -233,10 +233,15 @@ pushd "$DIR/Build/$ARCH"
|
|||
--enable-shared \
|
||||
--enable-languages=c,c++ \
|
||||
--enable-default-pie \
|
||||
--enable-lto \
|
||||
${TRY_USE_LOCAL_TOOLCHAIN:+"--quiet"} || exit 1
|
||||
|
||||
echo "XXX build gcc and libgcc"
|
||||
"$MAKE" -j "$MAKEJOBS" all-gcc all-target-libgcc || exit 1
|
||||
"$MAKE" -j "$MAKEJOBS" all-gcc || exit 1
|
||||
if [ "$(uname -s)" = "OpenBSD" ]; then
|
||||
ln -sf liblto_plugin.so.0.0 gcc/liblto_plugin.so
|
||||
fi
|
||||
"$MAKE" -j "$MAKEJOBS" all-target-libgcc || exit 1
|
||||
echo "XXX install gcc and libgcc"
|
||||
"$MAKE" install-gcc install-target-libgcc || exit 1
|
||||
|
||||
|
@ -259,7 +264,7 @@ pushd "$DIR/Build/$ARCH"
|
|||
"$MAKE" install-target-libstdc++-v3 || exit 1
|
||||
|
||||
if [ "$(uname -s)" = "OpenBSD" ]; then
|
||||
cd "$DIR/Local/libexec/gcc/$TARGET/$GCC_VERSION" && ln -sf liblto_plugin.so.0.0 liblto_plugin.so
|
||||
cd "$DIR/Local/${ARCH}/libexec/gcc/$TARGET/$GCC_VERSION" && ln -sf liblto_plugin.so.0.0 liblto_plugin.so
|
||||
fi
|
||||
|
||||
popd
|
||||
|
|
Loading…
Reference in a new issue