From bfd07f9c349cddbd375a0fea8439462ba88c9406 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 21 Jan 2024 09:52:47 -0500 Subject: [PATCH] Always build as position-independent code (PIC) --- libphonenumber.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libphonenumber.spec b/libphonenumber.spec index 3e1aaa7..a1460da 100644 --- a/libphonenumber.spec +++ b/libphonenumber.spec @@ -1,6 +1,6 @@ Name: libphonenumber Version: 8.13.28 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Library to handle international phone numbers # 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 @@ -47,11 +47,12 @@ sed -r -i 's/\b(CMAKE_CXX_STANDARD[[:blank:]]+)11\b/\117/' \ %build pushd cpp %ifarch %{java_arches} -%cmake +%cmake \ %else touch src/phonenumbers/test_metadata.h -%cmake -DREGENERATE_METADATA=OFF +%cmake -DREGENERATE_METADATA=OFF \ %endif + -DCMAKE_POSITION_INDEPENDENT_CODE=ON %cmake_build popd @@ -79,6 +80,9 @@ popd %changelog +* Sun Jan 21 2024 Benjamin A. Beasley - 8.13.28-5 +- Always build as position-independent code (PIC) + * Sun Jan 21 2024 Fedora Release Engineering - 8.13.28-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild