File: fix-makefilelinux.diff

package info (click to toggle)
wizznic 0.9.9%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,432 kB
  • sloc: ansic: 7,222; makefile: 53
file content (32 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (2)
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
Description: patch to improve the gcc hardening
Author: Raphael Mota Ramos <raphaelmota.ti@gmail.com>
Last-Update: 2016-01-19

--- a/Makefile.linux
+++ b/Makefile.linux
@@ -18,7 +18,7 @@
 
 INCS =  -I. -I/usr/include -I/usr/include/SDL
 
-LDFLAGS=$(CFLAGS)
+#LDFLAGS=$(CFLAGS)
 LIBS = -lSDL -lSDL_image -lSDL_mixer -lpng -lm -lz -lpthread
 
 #Are we compiling with gl?
@@ -32,14 +32,14 @@
 levelselector.o leveleditor.o particle.o pack.o settings.o stats.o strings.o\
 mbrowse.o teleport.o credits.o waveimg.o userfiles.o
 
-MYCC = $(CC) $(CFLAGS) $(INCS) $(DEFS)
+MYCC = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(INCS) $(DEFS)
 
 ########################################################################
 
 sdl: $(TARGET)
 
 $(TARGET): $(OBJS)
-	$(LD) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
+	$(LD) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
 	$(STRIP) $@
 
 .c.o: