--- ./usr/Makefile.orig 2022-10-18 17:05:19.372689740 +0200 +++ ./usr/Makefile 2022-10-18 17:06:23.780637102 +0200 @@ -1,13 +1,13 @@ sbindir ?= $(PREFIX)/sbin libdir ?= $(PREFIX)/lib/tgt -ifneq ($(shell test -e /usr/include/linux/signalfd.h && echo 1),) -CFLAGS += -DUSE_SIGNALFD -endif - -ifneq ($(shell test -n $(shell find /usr/include -name "timerfd.h" | head -n1) && echo 1),) -CFLAGS += -DUSE_TIMERFD -endif +#ifneq ($(shell test -e /usr/include/linux/signalfd.h && echo 1),) +#CFLAGS += -DUSE_SIGNALFD +#endif + +#ifneq ($(shell test -n $(shell find /usr/include -name "timerfd.h" | head -n1) && echo 1),) +#CFLAGS += -DUSE_TIMERFD +#endif TGTD_OBJS += $(addprefix iscsi/, conn.o param.o session.o \ iscsid.o target.o chap.o sha1.o md5.o transport.o iscsi_tcp.o \ @@ -17,19 +17,19 @@ MODULES += bs_rbd.so endif -ifneq ($(GLFS_BD),) -MODULES += bs_glfs.so -endif +#ifneq ($(GLFS_BD),) +#MODULES += bs_glfs.so +#endif ifneq ($(SD_NOTIFY),) CFLAGS += -DUSE_SYSTEMD endif -ifneq ($(shell test -e /usr/include/sys/eventfd.h && test -e /usr/include/libaio.h && echo 1),) -CFLAGS += -DUSE_EVENTFD -TGTD_OBJS += bs_aio.o -LIBS += -laio -endif +#ifneq ($(shell test -e /usr/include/sys/eventfd.h && test -e /usr/include/libaio.h && echo 1),) +#CFLAGS += -DUSE_EVENTFD +#TGTD_OBJS += bs_aio.o +#LIBS += -laio +#endif ifneq ($(ISCSI_RDMA),) TGTD_OBJS += iscsi/iser.o iscsi/iser_text.o @@ -100,8 +100,8 @@ bs_rbd.so: bs_rbd.c $(CC) -shared $(CFLAGS) bs_rbd.c -o bs_rbd.so -lrados -lrbd -bs_glfs.so: bs_glfs.c - $(CC) -I/usr/include/glusterfs/api -shared $(CFLAGS) bs_glfs.c -o bs_glfs.so -lgfapi +#bs_glfs.so: bs_glfs.c +# $(CC) -I/usr/include/glusterfs/api -shared $(CFLAGS) bs_glfs.c -o bs_glfs.so -lgfapi .PHONY: install install: $(PROGRAMS) $(MODULES)