- Adjust LDFLAGS settings for LTO to take memory-constraints into
consideration OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1327
This commit is contained in:
committed by
Git OBS Bridge
parent
20718ecae2
commit
b29718b3df
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 24 12:43:15 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Adjust LDFLAGS settings for LTO to take memory-constraints into
|
||||
consideration
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 23 12:53:22 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
+6
-5
@@ -521,11 +521,6 @@ rm -rf third_party/libusb/src/libusb/libusb.h
|
||||
cp -a %{_includedir}/libusb-1.0/libusb.h third_party/libusb/src/libusb/libusb.h
|
||||
|
||||
%build
|
||||
# GN sets lto on its own and we need just ldflag options, not cflags
|
||||
%if %{with lto}
|
||||
export LDFLAGS="%{_lto_cflags}"
|
||||
%endif
|
||||
%define _lto_cflags %{nil}
|
||||
%if %{with clang}
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
@@ -561,6 +556,12 @@ export PATH="$HOME/bin/:$PATH"
|
||||
# do not eat all memory
|
||||
%limit_build -m 2600
|
||||
|
||||
# GN sets lto on its own and we need just ldflag options, not cflags
|
||||
%if %{with lto}
|
||||
export LDFLAGS="-flto=%{jobs}"
|
||||
%endif
|
||||
%define _lto_cflags %{nil}
|
||||
|
||||
# Set system libraries to be used
|
||||
gn_system_libraries=(
|
||||
ffmpeg
|
||||
|
||||
Reference in New Issue
Block a user