mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 01:01:27 +00:00
-fstack-protector-strong is controlled by the in-tree
CONFIG_STACKPROTECTOR_STRONG config option. If the flag is set without
the config option, scst fails to build:
ERROR: modpost: "__stack_chk_fail" [scst/src/scst.ko] undefined!
-fstack-clash-protection is disabled in the kernel's Makefile due to an
incompatibility with randomize_kstack_offset.
Fixes: 86d3d4bb1d ("kbuild: Enable additional compiler warnings")
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
#
|
|
# Makefile for the kernel part of iSCSI-SCST.
|
|
#
|
|
# Copyright (C) 2007 - 2018 Vladislav Bolkhovitin
|
|
# Copyright (C) 2007 - 2018 Western Digital Corporation
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation, version 2
|
|
# of the License.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
|
|
KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers
|
|
|
|
ccflags-y := -I$(src)/../include \
|
|
-I$(src)/../../scst/include \
|
|
-Wall \
|
|
-Wextra \
|
|
-Wno-type-limits \
|
|
-Wno-missing-field-initializers \
|
|
-Wno-unused-parameter \
|
|
-Wformat \
|
|
-O2 \
|
|
-Werror=format-security \
|
|
-Werror=implicit-function-declaration \
|
|
-pipe \
|
|
-g \
|
|
-grecord-gcc-switches \
|
|
-Wstrict-prototypes
|
|
|
|
ccflags-y += $(CONFTEST_CFLAGS)
|
|
#ccflags-y += -DCONFIG_SCST_ISCSI_DEBUG_DIGEST_FAILURES
|
|
|
|
obj-m += iscsi-scst.o
|
|
iscsi-scst-objs := iscsi.o nthread.o config.o digest.o \
|
|
conn.o session.o target.o event.o param.o \
|
|
iscsit_transport.o
|