LDFLAGS is wrong, must use LIBS

OBS-URL: https://build.opensuse.org/package/show/graphics/libraw?expand=0&rev=87
This commit is contained in:
Jan Engelhardt 2017-01-11 10:48:03 +00:00 committed by Git OBS Bridge
parent 577e60a0a1
commit d2d9caca63

View File

@ -47,7 +47,7 @@ LibRaw is based on the source codes of the dcraw utility, where part of
drawbacks have already been eliminated and part will be fixed in future.
%package tools
Summary: Library for reading RAW files obtained from digital photo cameras -- Tools
Summary: Tools for reading RAW files obtained from digital photo cameras
Group: Productivity/Graphics/Other
%description tools
@ -100,8 +100,7 @@ against LibRaw. LibRaw does not provide dynamic libraries.
%build
export CXXFLAGS="%optflags -fPIC -DUSE_ZLIB"
# manually add linker flags for zlib:
export LDFLAGS="$LDFLAGS -lz"
export LIBS="$LIBS -lz"
%configure
# build env is too broken for parallel build
make %{?_smp_mflags}