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: *; };' >$@