Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37831806
en ru br
ALT Linux repos
S:1.4.1528-alt2

Group :: Games/Arcade
RPM: goonies

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: goonies-1.4.1528-DSO.patch
Download


diff --git a/build/linux/Makefile b/build/linux/Makefile
index df4bb3d..91d7c18 100644
--- a/build/linux/Makefile
+++ b/build/linux/Makefile
@@ -56,9 +56,10 @@ OBJS = \
 	$(SRC)/Symbol.o			$(SRC)/TheGooniesApp.o \
 	$(SRC)/TheGoonies.o		$(SRC)/Vector.o
 
-CC = gcc
+CC = g++
 CFLAGS = -g3 -O3 -Wno-write-strings `sdl-config --cflags` -I/usr/X11R6/include
-LDFLAGS = `sdl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lGL -lGLU
+LDFLAGS=
+LDLIBS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -lm
 RM = rm -f
 CP = cp -r
 MD = mkdir -p
@@ -72,7 +73,7 @@ all: $(EXE)
 	$(CC) $(CFLAGS) -c $< -o $@
 
 $(EXE): $(OBJS)
-	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
 	@$(STRIP) $@
 	@$(ECHO) " o If there are no errors, the game compiled succesfully"
 
diff --git a/src/auxiliar.cpp b/src/auxiliar.cpp
index ceab4de..c05d9a4 100644
--- a/src/auxiliar.cpp
+++ b/src/auxiliar.cpp
@@ -94,7 +94,7 @@ SDL_Surface *load_maskedimage(char *imagefile, char *maskfile, char *path)
 
     if (tmp == 0 ||
             mask == 0)
-        return false;
+        return NULL;
 
     res = SDL_DisplayFormatAlpha(tmp);
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin