summarylogtreecommitdiffstats
path: root/0002-avbin-fix-link-and-add-full-relro.patch
blob: df29ce2aa229bf765110cc2b6b1b11f2932365bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/linux-x86-32.Makefile
+++ b/linux-x86-32.Makefile
@@ -2,7 +2,7 @@ SONAME=libavbin.so.$(AVBIN_VERSION)
 LIBNAME=$(OUTDIR)/$(SONAME)
 
 CFLAGS += -fPIC
-LDFLAGS += -shared -soname $(SONAME) -zmuldefs
+LDFLAGS += -shared -soname $(SONAME) -zmuldefs -O1 --sort-common --as-needed -z relro -z now -O1 --sort-common --as-needed -z relro -z now
 
 STATIC_LIBS = -whole-archive \
               $(BACKEND_DIR)/libavformat/libavformat.a \
--- a/linux-x86-64.Makefile
+++ b/linux-x86-64.Makefile
@@ -2,7 +2,7 @@ SONAME=libavbin.so.$(AVBIN_VERSION)
 LIBNAME=$(OUTDIR)/$(SONAME)
 
 CFLAGS += -fPIC
-LDFLAGS += -shared -soname $(SONAME) -Bsymbolic -zmuldefs
+LDFLAGS += -shared -soname $(SONAME) -Bsymbolic -zmuldefs -O1 --sort-common --as-needed -z relro -z now -O1 --sort-common --as-needed -z relro -z now
 
 STATIC_LIBS = -whole-archive \
               $(BACKEND_DIR)/libavformat/libavformat.a \