mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
usbip: Use _FORTIFY_SOURCE=2 instead of (implicitly) =1
_FORTIFY_SOURCE=2 uses more and stricter checks. This is what e.g. Debian recommends to build packages with. While at it fix a typo in the output of ./configure --help. Signed-off-by: Uwe Kleine-König <ukleinek@debian.org> Reviewed-By: Hongren Zheng <i@zenithal.me> Link: https://lore.kernel.org/r/20230503173622.1072787-1-ukleinek@debian.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0c7f35d26b
commit
06042d7b32
@@ -94,11 +94,11 @@ AC_SUBST([USBIDS_DIR])
|
|||||||
AC_MSG_CHECKING([whether to use fortify])
|
AC_MSG_CHECKING([whether to use fortify])
|
||||||
AC_ARG_WITH([fortify],
|
AC_ARG_WITH([fortify],
|
||||||
[AS_HELP_STRING([--with-fortify],
|
[AS_HELP_STRING([--with-fortify],
|
||||||
[use _FORTIFY_SROUCE option when compiling)])],
|
[use _FORTIFY_SOURCE=2 option when compiling)])],
|
||||||
dnl [ACTION-IF-GIVEN]
|
dnl [ACTION-IF-GIVEN]
|
||||||
[if test "$withval" = "yes"; then
|
[if test "$withval" = "yes"; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE -O"
|
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -O"
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"
|
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"
|
||||||
|
Reference in New Issue
Block a user