summaryrefslogtreecommitdiff
path: root/tools/usb
diff options
context:
space:
mode:
authorUwe Kleine-König <ukleinek@debian.org>2023-05-03 19:36:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-29 15:11:30 +0100
commit06042d7b32a71c6a423948f8c7fd4bd13572bdf3 (patch)
tree3a814e21d27c3f70c97fd854f31df25441337635 /tools/usb
parent0c7f35d26b1dc45ab27e3ea8ff7f6a8a88a18174 (diff)
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>
Diffstat (limited to 'tools/usb')
-rw-r--r--tools/usb/usbip/configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/usb/usbip/configure.ac b/tools/usb/usbip/configure.ac
index 607d05c5ccfd..8debf934f8b7 100644
--- a/tools/usb/usbip/configure.ac
+++ b/tools/usb/usbip/configure.ac
@@ -94,11 +94,11 @@ AC_SUBST([USBIDS_DIR])
AC_MSG_CHECKING([whether to use fortify])
AC_ARG_WITH([fortify],
[AS_HELP_STRING([--with-fortify],
- [use _FORTIFY_SROUCE option when compiling)])],
+ [use _FORTIFY_SOURCE=2 option when compiling)])],
dnl [ACTION-IF-GIVEN]
[if test "$withval" = "yes"; then
AC_MSG_RESULT([yes])
- CFLAGS="$CFLAGS -D_FORTIFY_SOURCE -O"
+ CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -O"
else
AC_MSG_RESULT([no])
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"