| 1 |
Description: add hardening flags to makefile |
| 2 |
Author: Thorsten Alteholz <[email protected]> |
| 3 |
Index: rplay-3.3.2/contrib/mailsound/Makefile |
| 4 |
=================================================================== |
| 5 |
--- rplay-3.3.2.orig/contrib/mailsound/Makefile 1998-07-15 00:35:22.000000000 +0200 |
| 6 |
+++ rplay-3.3.2/contrib/mailsound/Makefile 2018-12-13 09:38:39.730155972 +0100 |
| 7 |
@@ -1,11 +1,11 @@ |
| 8 |
include ../../Makefile.config |
| 9 |
|
| 10 |
|
| 11 |
+CPPFLAGS+= $(CC_OPTIONS) -I../../include |
| 12 |
|
| 13 |
.c.o: |
| 14 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
| 15 |
|
| 16 |
|
| 17 |
+LDFLAGS+= $(LD_OPTIONS) -L../../librplay -lrplay |
| 18 |
|
| 19 |
OBJS= mailsound.o |
| 20 |
|
| 21 |
Index: rplay-3.3.2/rplay/Makefile.in |
| 22 |
=================================================================== |
| 23 |
--- rplay-3.3.2.orig/rplay/Makefile.in 1999-03-21 01:44:57.000000000 +0100 |
| 24 |
+++ rplay-3.3.2/rplay/Makefile.in 2018-12-13 09:39:15.702154893 +0100 |
| 25 |
@@ -8,12 +8,12 @@ |
| 26 |
INSTALL_DATA = @INSTALL_DATA@ |
| 27 |
MKINSTALLDIRS= @srcdir@/../mkinstalldirs |
| 28 |
|
| 29 |
|
| 30 |
+CPPFLAGS+= $(CC_OPTIONS) -I. -I../include -I@srcdir@/../include -I@srcdir@/../lib @DEFS@ |
| 31 |
|
| 32 |
.c.o: |
| 33 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
| 34 |
|
| 35 |
|
| 36 |
+LDFLAGS+= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp @LDFLAGS@ @LIBS@ |
| 37 |
|
| 38 |
TARGET= rplay |
| 39 |
SRCS= rplay.c |
| 40 |
Index: rplay-3.3.2/librplay/Makefile.in |
| 41 |
=================================================================== |
| 42 |
--- rplay-3.3.2.orig/librplay/Makefile.in 2018-12-13 07:57:45.000000000 +0100 |
| 43 |
+++ rplay-3.3.2/librplay/Makefile.in 2018-12-13 09:54:57.598126658 +0100 |
| 44 |
@@ -8,8 +8,8 @@ |
| 45 |
INSTALL_DATA = @INSTALL_DATA@ |
| 46 |
MKINSTALLDIRS= @srcdir@/../mkinstalldirs |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
+CPPFLAGS+= $(CC_OPTIONS) -I. -I../include -I@srcdir@/../include @DEFS@ |
| 51 |
+LDFLAGS+= $(LD_OPTIONS) -shared -Xlinker -soname -Xlinker librplay.so.3 @LDFLAGS@ |
| 52 |
|
| 53 |
.c.o: |
| 54 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
| 55 |
Index: rplay-3.3.2/rplayd/Makefile.in |
| 56 |
=================================================================== |
| 57 |
--- rplay-3.3.2.orig/rplayd/Makefile.in 2018-12-13 07:57:45.000000000 +0100 |
| 58 |
+++ rplay-3.3.2/rplayd/Makefile.in 2018-12-13 09:54:44.370127054 +0100 |
| 59 |
@@ -9,7 +9,7 @@ |
| 60 |
INSTALL_DATA = @INSTALL_DATA@ |
| 61 |
MKINSTALLDIRS= @srcdir@/../mkinstalldirs |
| 62 |
|
| 63 |
|
| 64 |
+CPPFLAGS += $(CC_OPTIONS) -I. -I../include -I${srcdir} -I${srcdir}/../include \ |
| 65 |
-I${srcdir}/../lib -I${srcdir}/../adpcm \ |
| 66 |
@GSM_INCS@ \ |
| 67 |
@RX_INCS@ @DEFS@ \ |
| 68 |
@@ -24,7 +24,7 @@ |
| 69 |
.c.o: |
| 70 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
| 71 |
|
| 72 |
|
| 73 |
+LDFLAGS+= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp \ |
| 74 |
-L../adpcm -ladpcm @GSM_LIBS@ @RX_LIBS@ @LDFLAGS@ @LIBS@ -lm |
| 75 |
|
| 76 |
TARGET= rplayd |
| 77 |
Index: rplay-3.3.2/Makefile.config.in |
| 78 |
=================================================================== |
| 79 |
--- rplay-3.3.2.orig/Makefile.config.in 1998-08-13 08:12:59.000000000 +0200 |
| 80 |
+++ rplay-3.3.2/Makefile.config.in 2018-12-13 11:17:48.553977642 +0100 |
| 81 |
@@ -29,7 +29,7 @@ |
| 82 |
## |
| 83 |
## Default CFLAGS |
| 84 |
## |
| 85 |
|
| 86 |
+CFLAGS+= @CFLAGS@ |
| 87 |
|
| 88 |
## |
| 89 |
## Other compiler options. |