forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-08-21 fc437ccf3419c424092701f3d883215fa4552a8b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Do not pass -fstack-protector unconditionally
 
Using -fstack-protector only works when the toolchain has SSP support.
 
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 
Index: b/src/Makefile.am
===================================================================
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -127,7 +127,6 @@
     -Wformat \
     -Wshadow \
     -fno-omit-frame-pointer \
-    -fstack-protector \
     $(GLIB2_CFLAGS) \
     $(LIBNL_CFLAGS) \
     $(NCURSES_CFLAGS) \