mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
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: 4cb5245546
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-10-20 (Thu, 20 Oct 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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 $<))\""'
|
||||
|
Reference in New Issue
Block a user