| 1 |
Fromscip-debian debian boulder-game 1.02+ds-2 boulder-game/patches/`Use-CXX-and-not-CC-for-g.patch`#From.: =?utf-8?q?Andreas_R=C3=B6nnquist?= <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian boulder-game 1.02+ds-2 boulder-game/patches/`Use-CXX-and-not-CC-for-g.patch`#Date.: Fri, 31 Oct 2025 16:50:49 +0100 |
| 3 |
Subjectscip-debian debian boulder-game 1.02+ds-2 boulder-game/patches/`Use-CXX-and-not-CC-for-g.patch`#Subject.: Use CXX and not CC for g++ |
| 4 |
|
| 5 |
--- |
| 6 |
build/linux/Makefile | 20 ++++++++++---------- |
| 7 |
1 file changed, 10 insertions(+), 10 deletions(-) |
| 8 |
|
| 9 |
diff --git a/build/linux/Makefilescip-debian debian boulder-game 1.02+ds-2 boulder-game/upstream/`build/linux/Makefile`: b/build/linux/Makefilescip-debian debian boulder-game 1.02+ds-2 boulder-game/upstream/`build/linux/Makefile`: |
| 10 |
index 21c406d..fc8d4a1 100755 |
| 11 |
--- a/build/linux/Makefile |
| 12 |
+++ b/build/linux/Makefile |
| 13 |
@@ -15,7 +15,7 @@ TARGET_ARCH = $(shell uname -m) |
| 14 |
######### |
| 15 |
#setup |
| 16 |
|
| 17 |
|
| 18 |
+CXX = g++ |
| 19 |
PKG_CONFIG ?= pkg-config |
| 20 |
COMPILERFLAGS = -Wall |
| 21 |
|
| 22 |
@@ -60,16 +60,16 @@ FNT_COMP_OBJECTS = ../../other/fnt_comp/fnt_comp.o ../../src/common/fileresource |
| 23 |
# fix so that a new or renamed .h file will cause a rebuild |
| 24 |
# and finally fix paths in the .d file |
| 25 |
%.o: %.cpp |
| 26 |
|
| 27 |
|
| 28 |
+ $(CXX) -c $(LOCAL_CPPFLAGS) $(LOCAL_CXXFLAGS) $*.cpp -o $*.o |
| 29 |
+ $(CXX) -MM $(LOCAL_CPPFLAGS) $(LOCAL_CXXFLAGS) $*.cpp > $*.d |
| 30 |
@mv -f $*.d $*.d.tmp |
| 31 |
@sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d |
| 32 |
@sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $*.d |
| 33 |
@rm -f $*.d.tmp |
| 34 |
|
| 35 |
%.o: %.c |
| 36 |
|
| 37 |
|
| 38 |
+ $(CXX) -c $(LOCAL_CPPFLAGS) $(LOCAL_CFLAGS) $*.c -o $*.o |
| 39 |
+ $(CXX) -MM $(LOCAL_CPPFLAGS) $(LOCAL_CFLAGS) $*.c > $*.d |
| 40 |
@mv -f $*.d $*.d.tmp |
| 41 |
@sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d |
| 42 |
@sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $*.d |
| 43 |
@@ -105,21 +105,21 @@ install: |
| 44 |
#private |
| 45 |
|
| 46 |
boulder: $(BOULDER_OBJECTS) |
| 47 |
|
| 48 |
+ $(CXX) -o ./boulder $(BOULDER_OBJECTS) $(LDFLAGS_PLAIN) $(LDFLAGS_GFX) |
| 49 |
-include $(BOULDER_OBJECTS:.o=.d) |
| 50 |
|
| 51 |
mapeditor: $(EDITOR_OBJECTS) |
| 52 |
|
| 53 |
+ $(CXX) -o ./mapeditor $(EDITOR_OBJECTS) $(LDFLAGS_PLAIN) $(LDFLAGS_GFX) |
| 54 |
-include $(EDITOR_OBJECTS:.o=.d) |
| 55 |
|
| 56 |
../../utils/res_comp/res_comp: $(RES_COMP_OBJECTS) |
| 57 |
|
| 58 |
+ $(CXX) -o ../../utils/res_comp/res_comp $(RES_COMP_OBJECTS) $(LDFLAGS_PLAIN) |
| 59 |
-include $(RES_COMP_OBJECTS:.o=.d) |
| 60 |
|
| 61 |
../../utils/img_cut/img_cut: $(IMG_CUT_OBJECTS) |
| 62 |
|
| 63 |
+ $(CXX) -o ../../utils/img_cut/img_cut $(IMG_CUT_OBJECTS) $(LDFLAGS_PLAIN) $(LDFLAGS_GFX) |
| 64 |
-include $(IMG_CUT_OBJECTS:.o=.d) |
| 65 |
|
| 66 |
../../utils/fnt_comp/fnt_comp: $(FNT_COMP_OBJECTS) |
| 67 |
|
| 68 |
+ $(CXX) -o ../../utils/fnt_comp/fnt_comp $(FNT_COMP_OBJECTS) $(LDFLAGS_PLAIN) $(LDFLAGS_GFX_GL) |
| 69 |
-include $(FNT_COMP_OBJECTS:.o=.d) |