File: 95_add_GCC_hardening_and_fix_clean.patch

package info (click to toggle)
gramofile 1.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,440 kB
  • sloc: ansic: 11,252; makefile: 60
file content (50 lines) | stat: -rw-r--r-- 1,572 bytes parent folder | download | duplicates (3)
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
46
47
48
49
50
Description: add GCC hardening and fix the clean process in upstream place.
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Last-Update: 2015-12-18
Index: gramofile-1.6/Makefile
===================================================================
--- gramofile-1.6.orig/Makefile
+++ gramofile-1.6/Makefile
@@ -15,12 +15,12 @@ OBJS = $(SRCS:.c=.o)
 SHELL = /bin/sh
 
 CC = gcc
-LDFLAGS = 
+LDFLAGS += 
 
 ########## CHOOSE YOUR ARCHITECTURE:    (NOTE: also see bplaysrc/Makefile!)
 
 # For Linux (and maybe others), use these:
-CFLAGS = -Wall -O2 -funroll-loops -DTURBO_MEDIAN -DTURBO_BUFFER
+CFLAGS += -Wall -O2 -funroll-loops -DTURBO_MEDIAN -DTURBO_BUFFER
 DEPS = $(OBJS) makebplay
 LIBS = -lncurses -lrfftw -lfftw -lm
 COPY_A = -a
@@ -55,6 +55,8 @@ makebplay: yesnowindow.o boxes.o buttons
 	cp $(COPY_A) bplaysrc/bplay ./bplay_gramo
 	ln -s bplay_gramo brec_gramo
 
+distclean: clean
+
 .PHONY: clean
 clean:
 	$(MAKE) -C bplaysrc clean
Index: gramofile-1.6/bplaysrc/Makefile
===================================================================
--- gramofile-1.6.orig/bplaysrc/Makefile
+++ gramofile-1.6/bplaysrc/Makefile
@@ -7,12 +7,12 @@ OBJS = bplay.o sndfunc.o shmbuf.o ../yes
 #SRCS = bplay.c sndfunc.o shmbuf.c
 
 CC = gcc
-LDFLAGS = 
+LDFLAGS += 
 
 ########## CHOOSE YOUR ARCHITECTURE:    (NOTE: also see ../Makefile!)
 
 # For Linux (and maybe others), use these:
-CFLAGS = -Wall -O2 -DUSEBUFFLOCK -DLP2CD -DVUMETER # -DDEBUG
+CFLAGS += -Wall -O2 -DUSEBUFFLOCK -DLP2CD -DVUMETER # -DDEBUG
 LIBS = -lncurses
 
 # For FreeBSD (and maybe others), use these: