From 4cb524554663edcb2b0dae7fdab9d08d37305731 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Thu, 20 Oct 2016 09:11:39 +0200 Subject: [PATCH] configure: fix short-filename logic if configure was not called from absolute path, detection would fail and huge filenames would be included in binary (noticed in yocto krogoth release) --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 52816c0a2..e2d156dca 100644 --- a/configure.ac +++ b/configure.ac @@ -276,7 +276,7 @@ fi fi # hack to define a short filename also for out-of-tree build -if test `dirname $0` = `pwd`; then +if test `dirname $0` = `pwd` || test "$0" = ./configure; then HWLIB_CFLAGS="$HWLIB_CFLAGS "'-D__file__=__FILE__' else HWLIB_CFLAGS="$HWLIB_CFLAGS "'-D__file__="\"$(subst $(srcdir)/,,$(abspath $<))\""'