From 665f022c687e0e6dac607696bf913e085001ad6cf867fe4147ae5ebb94e5f501 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 25 Apr 2022 22:06:19 +0000 Subject: [PATCH] adjust sdl2-symvers.patch:: PACKAGE_VERSION won't work without automake OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=121 --- SDL2.spec | 1 + sdl2-symvers.patch | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/SDL2.spec b/SDL2.spec index def37ec..47e29a2 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -108,6 +108,7 @@ library. %prep %autosetup -p1 perl -i -pe 's{\r\n}{\n}g' *.txt README.md +echo 'V_%version { global: *; };' >sdl2.sym %build %global _lto_cflags %_lto_cflags -ffat-lto-objects diff --git a/sdl2-symvers.patch b/sdl2-symvers.patch index 49e2a83..7d76860 100644 --- a/sdl2-symvers.patch +++ b/sdl2-symvers.patch @@ -26,19 +26,3 @@ Index: SDL2-2.0.22/Makefile.in all: $(srcdir)/configure Makefile $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET) -@@ -155,7 +155,7 @@ update-revision: - - .PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d) - --$(objects)/$(TARGET): $(GEN_HEADERS) $(GEN_OBJECTS) $(OBJECTS) $(VERSION_OBJECTS) -+$(objects)/$(TARGET): $(GEN_HEADERS) $(GEN_OBJECTS) $(OBJECTS) $(VERSION_OBJECTS) sdl2.sym - $(RUN_CMD_LTLINK)$(LIBTOOL) --tag=$(LIBTOOLLINKERTAG) --mode=link $(LINKER) -o $@ $(OBJECTS) $(GEN_OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS) - - $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS) -@@ -257,3 +257,6 @@ dist $(distfile): - - rpm: $(distfile) - rpmbuild -ta $? -+ -+sdl2.sym: -+ echo 'V_${PACKAGE_VERSION} { global: *; };' >$@