1
0
forked from erlang/erlang

Accepting request 726468 from home:marxin:branches:devel:languages:erlang:Factory

- Udate -ffat-lto-objects in order to properly build static libraries
  provided by the package (boo#1142645).
- Use %make_build macro.

OBS-URL: https://build.opensuse.org/request/show/726468
OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang:Factory/erlang?expand=0&rev=88
This commit is contained in:
2019-09-03 08:24:35 +00:00
committed by Git OBS Bridge
parent 06ee149183
commit 5be9c695b7
2 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Aug 27 10:51:47 UTC 2019 - Martin Liška <mliska@suse.cz>
- Udate -ffat-lto-objects in order to properly build static libraries
provided by the package (boo#1142645).
- Use %make_build macro.
-------------------------------------------------------------------
Mon Jul 29 08:15:47 UTC 2019 - opensuse-packaging@opensuse.org

View File

@@ -315,6 +315,7 @@ sed -i 's|SSL_DYNAMIC_ONLY=no|SSL_DYNAMIC_ONLY=yes|' erts/configure
sed -i 's|WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`|WX_LIBS="`$WX_CONFIG_WITH_ARGS --libs` -lGLU"|' lib/wx/configure || return 1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
# we need build only 1.6 target for java
# for SLE only
%if 0%{?sles_version} >= 10 || 0%{?suse_version} >= 1110
@@ -340,11 +341,10 @@ export CXXFLAGS=$CFLAGS
%endif
--enable-shared-zlib
# clean stalled files before rebuild them
make %{?_smp_mflags} clean
# should work up to at least -j8
make %{?_smp_mflags}
%make_build clean
%make_build
# to build the docs, just compiled erlang is required
PATH=$PWD/bin:$PATH make %{?_smp_mflags} docs
PATH=$PWD/bin:$PATH %make_build docs
%install
%if 0%{?sles_version} >= 10