Am Samstag, 7. August 2010 15:37:20 schrieb Peter Czanik:
Hello, Hello!
On 08/05/2010 09:43 PM, Marius Tomaschewski wrote:
Further, you have either to link pcre statically, not link it at all or request a move of the lib to /%{_lib}.
For an existing product it would be quite difficult. So for SLES I would disable pcre (AFAIK, not many people use it anyway). How can ifdef pcre out for SLES in the spec file?
%if 0%{?sles_version} <= 11
# for all released sles versions
# --disable-pcre ...
%endif
sles_version is defined to 9, 10 or 11. similar with suse_version,
except that it makes use of a 4-digit coded version numbers:
%if 0%{?suse_version} <= 1130
# for released opensuse versions
# --disable-pcre ...
%endif
See also:
http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
Gruesse / Regards,
Marius Tomaschewski