File moon-lander-makefile.patch of Package moon-lander
--- Makefile +++ Makefile @@ -1,5 +1,7 @@ # Makefile for test program for game_libs - lunar lander -CFLAGS=-Wall `sdl-config --libs --cflags` +CFLAGS=-Wall $(RPM_OPT_FLAGS) `sdl-config --cflags` +LDFLAGS=`sdl-config --libs` CC=gcc +CXX=g++ LIBS=SDL_image @@ -11,7 +13,7 @@ all: game_lib game_lib: $(OBJ_FILES) - $(CC) $(CFLAGS) -o $(OUT_FILE) $(OBJ_FILES) -l$(LIBS) -lSDL_mixer + $(CXX) $(LDFLAGS) -o $(OUT_FILE) $(OBJ_FILES) -l$(LIBS) -lSDL_mixer -lSDL moon_lander.o: moon_lander.c $(CC) $(CFLAGS) -c -o $@ $^