You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-arcade/tomatoes/files/tomatoes-1.55-underlink.patch

39 lines
905 B

--- a/makefile
+++ b/makefile
@@ -48,7 +47,7 @@
LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -pg
else
CFLAGS = -MMD -O3 -march=$(MARCH) -Wall $(SDL_FLAGS)
-LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -s
+LDLIBS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -lm
endif
endif
@@ -58,7 +57,7 @@
OBJS := $(subst src/,obj/,$(OBJS))
# Include directories
-INCLUDES = -I./include
+INCLUDES = -I./include $(SDL_FLAGS)
# Targets
@@ -69,7 +68,7 @@
-include $(DEPS)
$(TARGET): $(OBJS)
- $(CC) -o $(TARGET) $(OBJS) $(LDFLAGS)
+ $(CXX) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LDLIBS)
clean:
rm -f $(OBJS) $(TARGET)
@@ -80,7 +79,7 @@
rebuild: veryclean all
obj/%.o: src/%.cpp
- $(CC) $(CFLAGS) $(INCLUDES) $(DIR_DEFINES) -c $< -o $@
+ $(CXX) $(CXXFLAGS) $(INCLUDES) $(DIR_DEFINES) -c $< -o $@
# Compress the exe with UPX
compress: $(TARGET)