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. drawbacks have already been eliminated and part will be fixed in future.
%package tools %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 Group: Productivity/Graphics/Other
%description tools %description tools
@ -100,8 +100,7 @@ against LibRaw. LibRaw does not provide dynamic libraries.
%build %build
export CXXFLAGS="%optflags -fPIC -DUSE_ZLIB" export CXXFLAGS="%optflags -fPIC -DUSE_ZLIB"
# manually add linker flags for zlib: export LIBS="$LIBS -lz"
export LDFLAGS="$LDFLAGS -lz"
%configure %configure
# build env is too broken for parallel build # build env is too broken for parallel build
make %{?_smp_mflags} make %{?_smp_mflags}