[packages/SDL_bgi] - added no-strip patch (disable stripping on build)
qboosh
qboosh at pld-linux.org
Tue May 28 19:18:35 CEST 2024
commit de8559ee0ab03341e5dcc185bd85b7644caa7692
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue May 28 18:57:09 2024 +0200
- added no-strip patch (disable stripping on build)
SDL_bgi-no-strip.patch | 12 ++++++++++++
SDL_bgi.spec | 2 ++
2 files changed, 14 insertions(+)
---
diff --git a/SDL_bgi.spec b/SDL_bgi.spec
index 0bdacf1..ba4d9b2 100644
--- a/SDL_bgi.spec
+++ b/SDL_bgi.spec
@@ -9,6 +9,7 @@ License: Zlib (BSD-like)
Group: Libraries
Source0: https://downloads.sourceforge.net/sdl-bgi/%{name}-%{version}.tar.gz
# Source0-md5: 8a52ed8991e0271402eea273fc775bee
+Patch0: %{name}-no-strip.patch
URL: https://sdl-bgi.sourceforge.io/
BuildRequires: SDL2-devel >= 2.0
BuildRequires: cmake >= 3.5.0
@@ -77,6 +78,7 @@ SDL_bgi - przykładowe programy.
%prep
%setup -q
+%patch0 -p1
%build
install -d build
diff --git a/SDL_bgi-no-strip.patch b/SDL_bgi-no-strip.patch
new file mode 100644
index 0000000..a3c7847
--- /dev/null
+++ b/SDL_bgi-no-strip.patch
@@ -0,0 +1,12 @@
+--- SDL_bgi-3.0.2/CMakeLists.txt.orig 2023-08-03 12:12:31.000000000 +0200
++++ SDL_bgi-3.0.2/CMakeLists.txt 2024-05-28 17:21:19.772419464 +0200
+@@ -10,9 +10,6 @@ set (SDL_BGI_VERSION 3.0.2)
+ # Project name
+ project (SDL_bgi VERSION ${SDL_BGI_VERSION} LANGUAGES C)
+
+-# Strip the library after building
+-set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s")
+-
+ # Include SDL2 support for cmake
+ find_package (SDL2 REQUIRED)
+ # fix provided by Austin Hurst
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/SDL_bgi.git/commitdiff/de8559ee0ab03341e5dcc185bd85b7644caa7692
More information about the pld-cvs-commit
mailing list