Accepting request 51721 from home:elvigia:branches:Base:System

OBS-URL: https://build.opensuse.org/request/show/51721
OBS-URL: https://build.opensuse.org/package/show/Base:System/lzo?expand=0&rev=9
This commit is contained in:
Cristian Rodríguez 2010-10-31 16:45:24 +00:00 committed by Git OBS Bridge
parent 43bed02415
commit b2dead43c6
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Oct 30 19:05:43 UTC 2010 - cristian.rodriguez@opensuse.org
- Use GCC visibility.
-------------------------------------------------------------------
Thu Feb 11 12:30:25 CET 2010 - rguenther@suse.de

View File

@ -104,9 +104,18 @@ Authors:
%prep
%setup -q
%patch1
%build
export CFLAGS="%optflags -fvisibility=hidden"
%configure --enable-shared --disable-static --libdir=/%{_lib}
#On windows, the build system defines __LZO_EXPORT1 to
# __attribute__((dllexport))) which we can abuse to make
#use of GCC visibility. ;-)
#see http://gcc.gnu.org/wiki/Visibility
#If you remove this, you must disable -fvisibility=hidden in CFLAGS!
echo '#define __LZO_EXPORT1 __attribute__ ((visibility ("default")))' >> config.h
%{__make} %{?_smp_mflags}
%check