From 07f447e0f9aba183fd3dc95f91b529a01456d07e 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) Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b8cf8167f4cd540c7b4077a0359ddc534767abce Author: Stefan Seyfried Date: 2016-10-20 (Thu, 20 Oct 2016) ------------------ This commit was generated by Migit --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index bac79fa15..1f553e6e0 100644 --- a/configure.ac +++ b/configure.ac @@ -234,7 +234,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__' HWLIB_CFLAGS="$HWLIB_CFLAGS "'-D__path_file__=__FILE__' else