mirror of
https://github.com/dslm4515/BMLFS.git
synced 2026-02-01 03:26:07 +00:00
Upgraded libuv to 1.42.0
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
# libUV 1.41.0
|
||||
# Source: https://dist.libuv.org/dist/v1.41.0/libuv-v1.41.0.tar.gz
|
||||
# libUV
|
||||
# Source: https://dist.libuv.org/dist/v1.42.0/libuv-v1.42.0.tar.gz
|
||||
#
|
||||
# $BUILD = Directory to temporarily install
|
||||
# $PKGS = Directory to store built packages
|
||||
@ -11,11 +11,17 @@
|
||||
# Optional: None
|
||||
# LTO: Tested with LLVM
|
||||
|
||||
# If optimizing, use these flags
|
||||
# Recommended to not use LTO
|
||||
export CFLAGS="-march=native -mtune=native -pipe "
|
||||
export CFLAGS+="-O3 -ffat-lto-objects -flto=4 "
|
||||
export LDFLAGS="-flto=4 -Wl,-O2 -Wl,--as-needed "
|
||||
|
||||
# Sometimes, autogen.sh fails with a petty error. Just
|
||||
# hardcode it.
|
||||
patch -Np1 -i ../patches/libuv-mlfs/autogen-hardcode.patch
|
||||
|
||||
export LDFLAGS=" -pthread"
|
||||
export LDFLAGS+=" -pthread"
|
||||
NOCONFIGURE=1 ./autogen.sh &&
|
||||
./configure --prefix=/usr --disable-static $BUILDTRUPLE
|
||||
|
||||
@ -56,5 +62,5 @@ EOF
|
||||
sudo mv /tmp/slack-desc install/ &&
|
||||
|
||||
read -p "Enter to build package" &&
|
||||
sudo makepkg -l y -c n $PKGS/libuv-1.41.0-$(uname -m)-mlfs.txz &&
|
||||
sudo makepkg -l y -c n $PKGS/libuv-1.42.0-$(uname -m)-mlfs.txz &&
|
||||
sudo rm -rf $BUILD/*
|
||||
|
||||
Reference in New Issue
Block a user