configure: build with -fstack-protector-strong if supported.
This commit is contained in:
parent
b513a5e15e
commit
b1b0264a4e
3
NEWS
3
NEWS
@ -1,5 +1,8 @@
|
||||
xbps-0.43 (???):
|
||||
|
||||
* configure: build with -fstack-protector-strong if supported by the compiler,
|
||||
and fallback to -fstack-protector-all otherwise.
|
||||
|
||||
* xbps-pkgdb(8): the `packaged-with` string obj is removed from pkgdb.
|
||||
Since 0.42 that object is unnecessary and is being obsoleted.
|
||||
|
||||
|
10
configure
vendored
10
configure
vendored
@ -269,14 +269,14 @@ done
|
||||
check_compiler_flag PIC f CFLAGS
|
||||
check_compiler_flag "inline-functions" f CFLAGS
|
||||
|
||||
check_compiler_flag stack-protector-all f CFLAGS
|
||||
if [ $? -eq 0 ]; then
|
||||
check_compiler_flag stack-protector-strong f CFLAGS
|
||||
if [ $? -ne 0 ]; then
|
||||
check_compiler_flag stack-protector-all f CFLAGS
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ "$CC" = "gcc" ]; then
|
||||
check_compiler_flag "param ssp-buffer-size=1" - CFLAGS
|
||||
fi
|
||||
fi
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "CPPFLAGS += -D_FORTIFY_SOURCE=2" >>$CONFIG_MK
|
||||
fi
|
||||
fi
|
||||
check_compiler_flag "visibility=default" f SHAREDLIB_CFLAGS
|
||||
if [ $? -eq 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user