Add an explaining comment about stubs
This commit is contained in:
parent
45a9a1a9e5
commit
96335402b5
@ -5,6 +5,7 @@
|
|||||||
%bcond_with new_api
|
%bcond_with new_api
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Build the compat package?
|
# Build the compat package?
|
||||||
%if !(0%{?fedora} >= 999 || 0%{?rhel} >= 99 || %{without new_api})
|
%if !(0%{?fedora} >= 999 || 0%{?rhel} >= 99 || %{without new_api})
|
||||||
%bcond_without compat_pkg
|
%bcond_without compat_pkg
|
||||||
@ -12,6 +13,7 @@
|
|||||||
%bcond_with compat_pkg
|
%bcond_with compat_pkg
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Replace obsolete functions with a stub?
|
# Replace obsolete functions with a stub?
|
||||||
%if (0%{?fedora} >= 30 || 0%{?rhel} >= 9) && %{with compat_pkg}
|
%if (0%{?fedora} >= 30 || 0%{?rhel} >= 9) && %{with compat_pkg}
|
||||||
%bcond_without enosys_stubs
|
%bcond_without enosys_stubs
|
||||||
@ -19,9 +21,11 @@
|
|||||||
%bcond_with enosys_stubs
|
%bcond_with enosys_stubs
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Build the static library?
|
# Build the static library?
|
||||||
%bcond_without staticlib
|
%bcond_without staticlib
|
||||||
|
|
||||||
|
|
||||||
# Run memcheck?
|
# Run memcheck?
|
||||||
%ifarch %{valgrind_arches}
|
%ifarch %{valgrind_arches}
|
||||||
# Valgrind does not work well on %%{power64} arches.
|
# Valgrind does not work well on %%{power64} arches.
|
||||||
@ -69,6 +73,8 @@
|
|||||||
%global compat_api glibc
|
%global compat_api glibc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
# Do we replace the obsolete API functions with stubs?
|
||||||
%if %{with enosys_stubs}
|
%if %{with enosys_stubs}
|
||||||
%global enosys_stubs yes
|
%global enosys_stubs yes
|
||||||
%else
|
%else
|
||||||
@ -87,6 +93,7 @@
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Needed for out-of-tree builds.
|
# Needed for out-of-tree builds.
|
||||||
%global _configure ../"configure"
|
%global _configure ../"configure"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user