File: enable-hardening.patch

package info (click to toggle)
cmucl 21d-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 45,328 kB
  • sloc: lisp: 378,758; ansic: 30,673; asm: 2,977; sh: 1,417; makefile: 357; csh: 31
file content (36 lines) | stat: -rw-r--r-- 1,133 bytes parent folder | download | duplicates (4)
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
Description: Enable Debian hardening by avoiding to overwrite CFLAGS
Author: Peter Van Eynde <pvaneynd@debian.org>
Forwarded: not-needed

--- cmucl.orig/src/motif/server/GNUmakefile
+++ cmucl/src/motif/server/GNUmakefile
@@ -1,6 +1,6 @@
-LIBS = -lXm -lXt -lX11
-CFLAGS = -O
-LDFLAGS =
+LIBS += -lXm -lXt -lX11
+#CFLAGS = -O
+#LDFLAGS =
 
 TARGET = motifd
 OBJS = main.o server.o translations.o packet.o message.o datatrans.o \
--- cmucl.orig/src/lisp/Config.x86_linux
+++ cmucl/src/lisp/Config.x86_linux
@@ -2,7 +2,10 @@
 include Config.x86_common
 
 CPPFLAGS += -m32 -D__NO_CTYPE -D_GNU_SOURCE
+CPPFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
 CFLAGS += -rdynamic  -march=pentium4 -mfpmath=sse -mtune=generic
+CFLAGS += $(shell dpkg-buildflags --get CFLAGS)
+CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
 
 UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
 ASSEM_SRC +=  linux-stubs.S
@@ -10,5 +13,6 @@
 OS_LIBS = -ldl
 OS_LINK_FLAGS = -m32 -rdynamic -Xlinker --export-dynamic -Xlinker -Map -Xlinker foo
 OS_LINK_FLAGS += -Wl,-z,noexecstack
+OS_LINK_FLAGS += $(shell dpkg-buildflags --get LDFLAGS)
 
 EXEC_FINAL_OBJ = exec-final.o