- asan_build: build ASAN included
- debug_build: build more suitable for debugging OBS-URL: https://build.opensuse.org/package/show/graphics/openexr?expand=0&rev=14
This commit is contained in:
parent
3a209879db
commit
810a498b42
Binary file not shown.
BIN
openexr-2.3.0.tar.gz.sig
Normal file
BIN
openexr-2.3.0.tar.gz.sig
Normal file
Binary file not shown.
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 6 09:35:55 UTC 2018 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- asan_build: build ASAN included
|
||||
- debug_build: build more suitable for debugging
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 5 13:22:33 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
19
openexr.spec
19
openexr.spec
@ -16,6 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
# perhaps you want to build against corresponding ilmbase build
|
||||
%define asan_build 0
|
||||
%define debug_build 0
|
||||
%global so_suffix -2_3-24
|
||||
# tests should run at least during local build
|
||||
# but do expect a HUGE number of memory, so beware
|
||||
@ -28,7 +31,7 @@ License: BSD-3-Clause
|
||||
Group: Productivity/Graphics/Other
|
||||
Url: http://www.openexr.com/
|
||||
Source0: https://github.com/openexr/openexr/releases/download/v%{version}/openexr-%{version}.tar.gz
|
||||
Source1: https://github.com/openexr/openexr/releases/download/v%{version}/ilmbase-%{version}.tar.gz.sig
|
||||
Source1: https://github.com/openexr/openexr/releases/download/v%{version}/openexr-%{version}.tar.gz.sig
|
||||
Source2: baselibs.conf
|
||||
Source3: openexr.keyring
|
||||
BuildRequires: automake
|
||||
@ -124,6 +127,9 @@ This package contains documentation.
|
||||
|
||||
%build
|
||||
export PTHREAD_LIBS="-lpthread"
|
||||
%if %{debug_build}
|
||||
export CXXFLAGS="%{optflags} -O0"
|
||||
%endif
|
||||
%configure \
|
||||
--docdir=%{_docdir}/%{name} \
|
||||
--disable-static \
|
||||
@ -131,6 +137,17 @@ export PTHREAD_LIBS="-lpthread"
|
||||
--enable-imfexamples \
|
||||
--enable-imffuzztest \
|
||||
--enable-imfhugetest
|
||||
%if %{asan_build}
|
||||
for i in $(find -name Makefile | grep -v 'IlmImf/Makefile'); do
|
||||
sed -i -e 's/\(^CXXFLAGS.*\)/\1 -fsanitize=address/' \
|
||||
-e 's/\(^LIBS =.*\)/\1 -lasan/' \
|
||||
$i
|
||||
done
|
||||
# IlmImf/Makefile requires special handling: IlmImf/b44ExpLogTable and IlmImf/eLut
|
||||
# helpers will run during build; but asan is not compatible with ulimit -v limitation
|
||||
sed -i -e 's/\($(AM_V_CXX)$(LTCXXCOMPILE)\)/\1 -fsanitize=address/' IlmImf/Makefile
|
||||
sed -i -e 's/\(^libIlmImf_la_LIBADD.*\)/\1 -lasan/' IlmImf/Makefile
|
||||
%endif
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user