Accepting request 197858 from multimedia:libs

- If we have a smblcient.pc available (meaning, we build against
  samba 4), we export the output of pkg-config --cflags smbclient
  into CFLAGS. Fixes build with Samab 4.0.

OBS-URL: https://build.opensuse.org/request/show/197858
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vlc?expand=0&rev=13
This commit is contained in:
Stephan Kulow 2013-09-09 08:58:41 +00:00 committed by Git OBS Bridge
commit 8d42aff6b7
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Sep 7 18:52:22 UTC 2013 - dimstar@opensuse.org
- If we have a smblcient.pc available (meaning, we build against
samba 4), we export the output of pkg-config --cflags smbclient
into CFLAGS. Fixes build with Samab 4.0.
-------------------------------------------------------------------
Fri Aug 9 14:20:19 UTC 2013 - dvaleev@suse.com

View File

@ -263,12 +263,14 @@ date
%build
echo '********* BOOTSTRAPPING *********'
date
pkg-config --exists smbclient &&
smbclient=$(pkg-config --cflags smbclient)
%ifarch %{ix86} x86_64
export CFLAGS="%{optflags} -L%{_libdir}/live -msse"
export CXXFLAGS="%{optflags} -L%{_libdir}/live -msse"
export CFLAGS="%{optflags} -L%{_libdir}/live -msse $smbclient"
export CXXFLAGS="%{optflags} -L%{_libdir}/live -msse $smbclient"
%else
export CFLAGS="%{optflags} -L%{_libdir}/live"
export CXXFLAGS="%{optflags} -L%{_libdir}/live"
export CFLAGS="%{optflags} -L%{_libdir}/live $smbclient"
export CXXFLAGS="%{optflags} -L%{_libdir}/live $smbclient"
%endif
# Needed for patch5