Commit 9b0ea781 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Add -fno-lto flag to OFFLOADFLAGS

parent 274543bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -886,7 +886,7 @@ EOF
    if [ "x$result" = "x0" ]; then
	echo "yes"
	echo "yes" >>configure.log
	OFFLOADFLAGS=" -DUSE_TARGET_OFFLOAD -fcf-protection=none -fno-stack-protector -foffload=nvptx-none=\"-O${CXX_OPT}${CXX_DBG} -fcf-protection=none -fno-stack-protector -fopt-info -lm -latomic -lgomp\""
	OFFLOADFLAGS=" -DUSE_TARGET_OFFLOAD -fno-lto -fcf-protection=none -fno-stack-protector -foffload=nvptx-none=\"-O${CXX_OPT}${CXX_DBG} -fno-lto -fcf-protection=none -fno-stack-protector -fopt-info -lm -latomic -lgomp\""
	if [ "x${OMPFLAGS}" = "x" ]; then
	    OFFLOADFLAGS="-fopenmp ${OFFLOADFLAGS}"
	fi