PATCH_LIST="0001-disable-hardcoded-paths.diff" FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="https://github.com/fujita/tgt/archive/refs/tags/v${PKGVER}.tar.gz" MAKEDEPENDS= function do_config { # -O2 and -Werror are hardcoded. -Werror triggers at -Os on some versions # of gcc such as 4.7. sed -i -e 's, -O2 , ,' -e 's, -Werror , ,' usr/Makefile } function do_compile_only { # Note: CFLAGS is only appended by makefile, so let's pre-export it. We # also have to re-enable some features that were commented out due to the # makefile hardcoding /usr. In addition, the script uses $(MAKE) everywhere # so we force it. CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL -DUSE_SIGNALFD -DUSE_TIMERFD" \ MAKE="$FLXPMAKE" \ $FLXPMAKE \ ISCSI_RDMA= CEPH_RBD= GLFS_BD= SD_NOTIFY= \ CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR }