Move defining use_custom_libcxx to %build

This commit is contained in:
Mikhail Novosyolov 2018-10-17 16:13:17 +03:00
parent b0e5c0946b
commit 114270ed1c

View file

@ -352,6 +352,8 @@ cmp $FILE $FILE.orig && exit 1
mkdir -p third_party/node/linux/node-linux-x64/bin
ln -s /usr/bin/node third_party/node/linux/node-linux-x64/bin/node
%build
# If system glibc is too old, use Chromium's built-in libc++, otherwise use system libc++.
# Shell does not or may not understand not integer values correctly,
# so remove the dot by sed to make the value of the glibc version an integer.
@ -370,7 +372,6 @@ echo "DEBUG: use_custom_libcxx = ${use_custom_libcxx}"
%define use_custom_libcxx_macro %(cat %{use_custom_libcxx_macro_tmpfile})
rm -fv %{use_custom_libcxx_macro_tmpfile}
%build
%define use_gold true
%if 0%{clang}
%define is_clang true