Skip to content

Commit 06042d7

Browse files
ukleinekgregkh
authored andcommitted
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 <[email protected]> Reviewed-By: Hongren Zheng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0c7f35d commit 06042d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/usb/usbip/configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ AC_SUBST([USBIDS_DIR])
9494
AC_MSG_CHECKING([whether to use fortify])
9595
AC_ARG_WITH([fortify],
9696
[AS_HELP_STRING([--with-fortify],
97-
[use _FORTIFY_SROUCE option when compiling)])],
97+
[use _FORTIFY_SOURCE=2 option when compiling)])],
9898
dnl [ACTION-IF-GIVEN]
9999
[if test "$withval" = "yes"; then
100100
AC_MSG_RESULT([yes])
101-
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE -O"
101+
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -O"
102102
else
103103
AC_MSG_RESULT([no])
104104
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"

0 commit comments

Comments
 (0)