summaryrefslogtreecommitdiff
path: root/games/nlarn/files/patch-Makefile
blob: f0b3412668e4eeed24d5a4a573dd1a4e3e55e93f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- Makefile.orig	2020-05-23 06:13:27 UTC
+++ Makefile
@@ -57,7 +57,7 @@ DEFINES += -DG_DISABLE_DEPRECATED
 
 # Definitions required regardless of host OS
 DEFINES += -DG_DISABLE_DEPRECATED
-CFLAGS  += -std=c99 -Wall -Wextra -Werror -Iinc -Iinc/external
+CFLAGS  += -std=c99 -Wall -Wextra -Iinc -Iinc/external
 LDFLAGS += -lz -lm
 
 ifneq (,$(findstring MINGW, $(MSYSTEM)))
@@ -104,7 +104,7 @@ ifneq ($(SDLPDCURSES),Y)
 
 # Unless requested otherwise build with curses.
 ifneq ($(SDLPDCURSES),Y)
-	LDFLAGS += -lcurses -lpanel
+	LDFLAGS += $(shell pkg-config --libs ncurses) -lpanel
 else
 	PDCLIB   := PDCurses/sdl2/pdcurses.a
 	CFLAGS   += $(shell pkg-config --cflags SDL2_ttf) -IPDCurses -DSDLPDCURSES