From 95286e777f902624585e4793a97d5bd3db1970c99139847d4284b28513b9707a Mon Sep 17 00:00:00 2001 From: Julius Enriquez Date: Mon, 20 May 2024 17:47:31 +0000 Subject: [PATCH] The following change allows the Turbo Vision library to be used by other applications: - Add CMake position-independent code build flag for libtvision.a OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tvision?expand=0&rev=3 --- tvision.changes | 10 ++++++++++ tvision.spec | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/tvision.changes b/tvision.changes index 931db59..d43e13f 100644 --- a/tvision.changes +++ b/tvision.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Sun May 19 10:24:57 UTC 2024 - Julius Enriquez + +- Add CMake position-independent code build flag for libtvision.a + +------------------------------------------------------------------- +Sat May 18 15:57:12 UTC 2024 - Julius Enriquez + +- Add -fPIC cflag for libtvision.a- + ------------------------------------------------------------------- Fri May 17 06:08:53 UTC 2024 - Jan Engelhardt diff --git a/tvision.spec b/tvision.spec index 05e24fb..3ab5bd1 100644 --- a/tvision.spec +++ b/tvision.spec @@ -85,7 +85,9 @@ with Unicode support. # Disable LTO due to a lto-no-text-in-archive problem with libtvision.a %global _lto_cflags %nil -%cmake +# Add CMake flag to let libtvision.a be used properly as a shared lib + +%cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON %cmake_build %install