Accepting request 878383 from home:llunak:branches:graphics

Enable SSE optimizations. They are not enabled by default in configure-based builds (see the INSTALL file).

OBS-URL: https://build.opensuse.org/request/show/878383
OBS-URL: https://build.opensuse.org/package/show/graphics/libpng16?expand=0&rev=120
This commit is contained in:
Petr Gajdos 2021-03-12 07:30:35 +00:00 committed by Git OBS Bridge
parent 7550ad9f8d
commit 53b8c15b0b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 11 13:26:15 UTC 2021 - Lubos Lunak <l.lunak@centrum.cz>
- enable hardware optimizations (such as SSE)
-------------------------------------------------------------------
Wed Apr 17 06:29:11 UTC 2019 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libpng16
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -31,7 +31,7 @@ Release: 0
Summary: Library for the Portable Network Graphics Format (PNG)
License: Zlib
Group: Development/Libraries/C and C++
Url: http://www.libpng.org/pub/png/libpng.html
URL: http://www.libpng.org/pub/png/libpng.html
Source0: http://prdownloads.sourceforge.net/libpng/libpng-%{version}.tar.xz
Source2: libpng16.keyring
Source3: rpm-macros.libpng-tools
@ -106,7 +106,7 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
export CFLAGS="$CFLAGS -Og"
%endif
%configure \
--disable-static
--disable-static --enable-hardware-optimizations=yes
%if %{asan_build}
sed -i -e 's/^\(CFLAGS.*\)$/\1 -fsanitize=address/' \
-e 's/\(^LIBS =.*\)/\1 -lasan/' Makefile