Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 831472 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/include/defaults.mk (-2 lines)
Lines 51-57 LDFLAGS ?= Link Here
51
override _CCLDFLAGS := $(CCLDFLAGS)
51
override _CCLDFLAGS := $(CCLDFLAGS)
52
override _LDFLAGS := $(LDFLAGS)
52
override _LDFLAGS := $(LDFLAGS)
53
override LDFLAGS = $(CFLAGS) -L. $(_LDFLAGS) $(_CCLDFLAGS) \
53
override LDFLAGS = $(CFLAGS) -L. $(_LDFLAGS) $(_CCLDFLAGS) \
54
		   -Wl,--add-needed \
55
		   -Wl,--build-id \
54
		   -Wl,--build-id \
56
		   -Wl,--no-allow-shlib-undefined \
55
		   -Wl,--no-allow-shlib-undefined \
57
		   -Wl,--no-undefined-version \
56
		   -Wl,--no-undefined-version \
Lines 94-100 override _HOST_LDFLAGS := $(HOST_LDFLAGS) Link Here
94
override _HOST_CCLDFLAGS := $(HOST_CCLDFLAGS)
93
override _HOST_CCLDFLAGS := $(HOST_CCLDFLAGS)
95
override HOST_LDFLAGS = $(HOST_CFLAGS) -L. \
94
override HOST_LDFLAGS = $(HOST_CFLAGS) -L. \
96
			$(_HOST_LDFLAGS) $(_HOST_CCLDFLAGS) \
95
			$(_HOST_LDFLAGS) $(_HOST_CCLDFLAGS) \
97
			-Wl,--add-needed \
98
			-Wl,--build-id \
96
			-Wl,--build-id \
99
			-Wl,--no-allow-shlib-undefined \
97
			-Wl,--no-allow-shlib-undefined \
100
			-Wl,-z,now \
98
			-Wl,-z,now \
(-)a/src/include/gcc.specs (-1 / +1 lines)
Lines 5-8 Link Here
5
+ %{!shared:%{!static:%{!r:-pie}}} %{static:-Wl,-no-fatal-warnings -Wl,-static -static -Wl,-z,relro,-z,now} -grecord-gcc-switches
5
+ %{!shared:%{!static:%{!r:-pie}}} %{static:-Wl,-no-fatal-warnings -Wl,-static -static -Wl,-z,relro,-z,now} -grecord-gcc-switches
6
6
7
*link:
7
*link:
8
+ --no-undefined-version --no-allow-shlib-undefined --add-needed -z now --build-id %{!static:%{!shared:-pie}} %{shared:-z relro} %{static:%<pie}
8
+ --no-undefined-version --no-allow-shlib-undefined -z now --build-id %{!static:%{!shared:-pie}} %{shared:-z relro} %{static:%<pie}

Return to bug 831472