summaryrefslogtreecommitdiff
path: root/games-roguelike/stone-soup/files/rltiles-ldflags-libs.patch
blob: a2948b23619c5837291bb5572342f21b2503a784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- a/rltiles/Makefile
+++ b/rltiles/Makefile
@@ -1,7 +1,7 @@
 uname_S := $(shell uname -s)

 ifneq (,$(findstring MINGW,$(uname_S)))
-LDFLAGS += -lmingw32
+LIBS += -lmingw32
 endif

 # Note: since generation of tiles is done on the host, we don't care about
@@ -29,7 +29,7 @@
   endif

   CFLAGS += $(PNG_INCLUDE)
-  LDFLAGS += $(PNG_LIB)
+  LIBS += $(PNG_LIB)

   CFLAGS += -DUSE_TILE
 endif
@@ -39,13 +39,13 @@
 endif

 ifneq (,$(findstring MINGW,$(uname_S)))
-LDFLAGS += -lgdi32 -lwinmm -lole32 -loleaut32 -limm32 -lshell32 -lversion -luuid
+LIBS += -lgdi32 -lwinmm -lole32 -loleaut32 -limm32 -lshell32 -lversion -luuid
 endif
 ifeq ($(uname_S),Darwin)
-LDFLAGS += -framework AppKit -framework AudioUnit -framework CoreAudio -framework ForceFeedback -framework Carbon -framework IOKit -framework OpenGL
+LIBS += -framework AppKit -framework AudioUnit -framework CoreAudio -framework ForceFeedback -framework Carbon -framework IOKit -framework OpenGL
 endif
 ifeq ($(uname_S),Linux)
-LDFLAGS += -ldl -lpthread
+LIBS += -ldl -lpthread
 endif

 # Attempt to use a full compiler name, to make
@@ -134,6 +134,6 @@
       $(QUIET_HOSTCXX)$(HOSTCXX) $(CFLAGS) -MMD -c $< -o $@

 $(TILEGEN): $(OBJECTS)
-	$(QUIET_HOSTLINK)$(HOSTCXX) $(CFLAGS) $(OBJECTS) -o $@ $(LDFLAGS)
+	$(QUIET_HOSTLINK)$(HOSTCXX) $(CFLAGS) $(OBJECTS) -o $@ $(LDFLAGS) $(LIBS)

 .PHONY: all clean distclean