mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-05 20:32:58 +02:00
chromium: fix x86_64-musl gn bootstrap
This commit is contained in:
parent
45e0892ed5
commit
59294bb561
1 changed files with 27 additions and 25 deletions
|
@ -43,8 +43,7 @@ post_extract() {
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
|
||||||
pre_configure() {
|
|
||||||
# Use the file at run time instead of effectively compiling it in
|
# Use the file at run time instead of effectively compiling it in
|
||||||
sed 's|//third_party/usb_ids/usb.ids|/usr/share/hwdata/usb.ids|g' \
|
sed 's|//third_party/usb_ids/usb.ids|/usr/share/hwdata/usb.ids|g' \
|
||||||
-i device/usb/BUILD.gn
|
-i device/usb/BUILD.gn
|
||||||
|
@ -59,29 +58,6 @@ do_configure() {
|
||||||
local system="" bootstrap_conf="" conf=""
|
local system="" bootstrap_conf="" conf=""
|
||||||
export -n CFLAGS CXXFLAGS LDFLAGS
|
export -n CFLAGS CXXFLAGS LDFLAGS
|
||||||
|
|
||||||
# bootstrap NaCL toolchain
|
|
||||||
if [ -n "$build_option_nacl" ] && [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
||||||
# XXX xtraeme: fix gcc{,-c++}-multilib instead.
|
|
||||||
ldconfig &>/dev/null
|
|
||||||
# Download NaCL toolchains
|
|
||||||
python2 nbuild/download_acl_toolchains.py \
|
|
||||||
--packages nacl_x86_newlib,pnacl_newlib,pnacl_translator sync --extract
|
|
||||||
# donwload clang
|
|
||||||
python2 tools/clang/scripts/update.py
|
|
||||||
ln -s /usr/lib/libncursesw.so.6 third_party/llvm-build/Release+Asserts/lib/libtinfo.so.5
|
|
||||||
fi
|
|
||||||
|
|
||||||
# bootstrap GN
|
|
||||||
bootstrap_conf='
|
|
||||||
use_sysroot=false
|
|
||||||
is_clang=false
|
|
||||||
use_gconf=false
|
|
||||||
treat_warnings_as_errors=false
|
|
||||||
binutils_path="/usr/bin"
|
|
||||||
use_allocator="none"'
|
|
||||||
AR="ar" CC=$CC_FOR_BUILD CXX=$CXX_FOR_BUILD LD=$CXX_FOR_BUILD \
|
|
||||||
python2 tools/gn/bootstrap/bootstrap.py --gn-gen-args "${bootstrap_conf// / }"
|
|
||||||
|
|
||||||
# Use system-provided libraries.
|
# Use system-provided libraries.
|
||||||
# TODO: use_system_hunspell (upstream changes needed).
|
# TODO: use_system_hunspell (upstream changes needed).
|
||||||
# TODO: use_system_libsrtp.
|
# TODO: use_system_libsrtp.
|
||||||
|
@ -125,6 +101,32 @@ do_configure() {
|
||||||
|
|
||||||
python2 third_party/libaddressinput/chromium/tools/update-strings.py
|
python2 third_party/libaddressinput/chromium/tools/update-strings.py
|
||||||
|
|
||||||
|
# bootstrap NaCL toolchain
|
||||||
|
if [ -n "$build_option_nacl" ] && [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||||
|
# XXX xtraeme: fix gcc{,-c++}-multilib instead.
|
||||||
|
ldconfig &>/dev/null
|
||||||
|
# Download NaCL toolchains
|
||||||
|
python2 nbuild/download_acl_toolchains.py \
|
||||||
|
--packages nacl_x86_newlib,pnacl_newlib,pnacl_translator sync --extract
|
||||||
|
# donwload clang
|
||||||
|
python2 tools/clang/scripts/update.py
|
||||||
|
ln -s /usr/lib/libncursesw.so.6 third_party/llvm-build/Release+Asserts/lib/libtinfo.so.5
|
||||||
|
fi
|
||||||
|
|
||||||
|
# bootstrap GN
|
||||||
|
bootstrap_conf='
|
||||||
|
is_clang=false
|
||||||
|
treat_warnings_as_errors=false
|
||||||
|
binutils_path="/usr/bin"
|
||||||
|
gold_path="/usr/bin/ld.gold"
|
||||||
|
use_gconf=false
|
||||||
|
use_sysroot=false
|
||||||
|
use_gold=true
|
||||||
|
use_allocator="none"
|
||||||
|
use_experimental_allocator_shim=false'
|
||||||
|
AR="ar" CC=$CC_FOR_BUILD CXX=$CXX_FOR_BUILD LD=$CXX_FOR_BUILD \
|
||||||
|
python2 tools/gn/bootstrap/bootstrap.py --gn-gen-args "${bootstrap_conf// / }"
|
||||||
|
|
||||||
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
|
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
|
||||||
# Note: These are for Void Linux use ONLY.
|
# Note: These are for Void Linux use ONLY.
|
||||||
conf+='
|
conf+='
|
||||||
|
|
Loading…
Add table
Reference in a new issue