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:
parent
43bed02415
commit
b2dead43c6
@ -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
|
Thu Feb 11 12:30:25 CET 2010 - rguenther@suse.de
|
||||||
|
|
||||||
|
11
lzo.spec
11
lzo.spec
@ -104,9 +104,18 @@ Authors:
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export CFLAGS="%optflags -fvisibility=hidden"
|
||||||
%configure --enable-shared --disable-static --libdir=/%{_lib}
|
%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}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
Loading…
Reference in New Issue
Block a user