Always build as position-independent code (PIC)
This commit is contained in:
parent
72211d1958
commit
bfd07f9c34
@ -1,6 +1,6 @@
|
|||||||
Name: libphonenumber
|
Name: libphonenumber
|
||||||
Version: 8.13.28
|
Version: 8.13.28
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Library to handle international phone numbers
|
Summary: Library to handle international phone numbers
|
||||||
# The project itself is ASL 2.0 but contains files from Chromium which are BSD and MIT.
|
# The project itself is ASL 2.0 but contains files from Chromium which are BSD and MIT.
|
||||||
License: ASL 2.0 and BSD and MIT
|
License: ASL 2.0 and BSD and MIT
|
||||||
@ -47,11 +47,12 @@ sed -r -i 's/\b(CMAKE_CXX_STANDARD[[:blank:]]+)11\b/\117/' \
|
|||||||
%build
|
%build
|
||||||
pushd cpp
|
pushd cpp
|
||||||
%ifarch %{java_arches}
|
%ifarch %{java_arches}
|
||||||
%cmake
|
%cmake \
|
||||||
%else
|
%else
|
||||||
touch src/phonenumbers/test_metadata.h
|
touch src/phonenumbers/test_metadata.h
|
||||||
%cmake -DREGENERATE_METADATA=OFF
|
%cmake -DREGENERATE_METADATA=OFF \
|
||||||
%endif
|
%endif
|
||||||
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
||||||
%cmake_build
|
%cmake_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -79,6 +80,9 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jan 21 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 8.13.28-5
|
||||||
|
- Always build as position-independent code (PIC)
|
||||||
|
|
||||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8.13.28-4
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8.13.28-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user