File use-cxx.patch of Package asciiportal

commit 06f61a2ece668c083fd831d223a85f009235555f
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date:   Wed Dec 10 08:21:18 2025 +0100

    Use CXX variable
    
    so the C++ compiler can be set from the outside

diff --git a/ASCIIpOrtal-linux-Makefile.txt b/ASCIIpOrtal-linux-Makefile.txt
index c90489e..875c719 100644
--- a/ASCIIpOrtal-linux-Makefile.txt
+++ b/ASCIIpOrtal-linux-Makefile.txt
@@ -34,10 +34,10 @@ package: fullclean asciiportal
 	tar cvfz $(PACKAGENAME).tar.gz $(PACKAGENAME)
 
 %.o: %.cpp
-	g++ -I $(PDCSDLDIR) -c $(GPPOPTS) $<
+	$(CXX) -I $(PDCSDLDIR) -c $(GPPOPTS) $(CXXFLAGS) $<
 
 asciiportal: ap_input.o ap_draw.o ap_play.o ap_sound.o main.o menu.o $(PDCSDLDIR)/sdl1/libpdcurses.a
-	g++ $^ -lSDL -lSDL_mixer -o $@
+	$(CXX) $^ -lSDL -lSDL_mixer -o $@
 
 $(PDCSDLDIR)/sdl1/libpdcurses.a: $(PDCSDLDIR)
 	cd `dirname $@` && make
openSUSE Build Service is sponsored by