-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_prepend
25 lines (25 loc) · 1.11 KB
/
build_prepend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Ensure the build really is quiet... the generated makefile checks whether "V"
# is defined, not whether its value is "0" or "1".
sed -i 's/V=\$(V)//' Makefile
# Also silence a few categories of warnings from the vendored v8 codebase. Helps
# shrink the build log size from ~104MiB to ~800KiB.
export CXXFLAGS="$CXXFLAGS -Wno-class-memaccess -Wno-comment"
# Prevent "make install" from rebuilding the node binary; the install step is a
# later stage in the spec.
sed -i 's/^install: all.*/install:/' Makefile
# Avoiding rebuilding the node binary for test execution
sed -i '/^\.PHONY: \$(NODE/d' Makefile
# Use /var/tmp instead of /tmp to aid building on systems with less RAM
export TMPDIR=/var/tmp
export CFLAGS="$CFLAGS -O3 -falign-functions=32 -fno-math-errno -fno-semantic-interposition -fno-trapping-math "
export CXXFLAGS="$CXXFLAGS -O3 -falign-functions=32 -fno-math-errno -fno-semantic-interposition -fno-trapping-math "
export PYTHON=/usr/bin/python2
./configure \
--prefix=/usr \
--shared-openssl \
--shared-zlib \
--use-largepages \
--shared-nghttp2 \
--shared-libuv \
--verbose \
--with-intl=system-icu