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
This commit is contained in:
parent
9b2aa434fe
commit
665f022c68
@ -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
|
||||
|
@ -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: *; };' >$@
|
||||
|
Loading…
Reference in New Issue
Block a user