Hello community, here is the log from the commit of package lzo for openSUSE:Factory checked in at Tue Nov 2 13:17:57 CET 2010. -------- --- lzo/lzo.changes 2010-02-11 12:30:52.000000000 +0100 +++ /mounts/work_src_done/STABLE/lzo/lzo.changes 2010-10-30 21:10:01.000000000 +0200 @@ -1,0 +2,5 @@ +Sat Oct 30 19:05:43 UTC 2010 - cristian.rodriguez@opensuse.org + +- Use GCC visibility. + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lzo.spec ++++++ --- /var/tmp/diff_new_pack.gLsoJM/_old 2010-11-02 13:17:24.000000000 +0100 +++ /var/tmp/diff_new_pack.gLsoJM/_new 2010-11-02 13:17:24.000000000 +0100 @@ -21,7 +21,7 @@ Name: lzo Url: http://www.oberhumer.com/opensource/lzo/ Version: 2.03 -Release: 6 +Release: 12 Group: Development/Libraries/C and C++ Source: lzo-%{version}.tar.bz2 Source2: baselibs.conf @@ -106,7 +106,17 @@ %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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de