glimpse
glimpse copied to clipboard
dynfilters/Makefile: make target does not honor previously configured LDFLAGS
Found in version:
$ glimpse -V
This is glimpse version 4.18.7, 2015.
How to reproduce the issue?
- Run an environment where libfl is not installed in the system.
- Have libfl installed locally under path defined as
$DEVLIBPATH/lib
. - Execute:
./configure --prefix=$DEVLIBPATH LDFLAGS='-L$DEVLIBPATH/lib'
- Check contents of
dynfilters/Makefile
file whereLDFLAGS
is defined asLDFLAGS=
Workaround: There are two ways to proceed with compilation.
First approach depends on your compiler. If you use GCC, you can insert $DEVLIBPATH/lib
into LIBRARY_PATH
variable. This will guide the compiler to search that path for libfl (-lfl
) instead of failing. LIBRARY_PATH
is different than LD_LIBRARY_PATH
so pay attention.
Second approach relies on dirty replacement of LDFLAGS
to match what was passed during ./configure ...
step. After performing step 3, run sed
to replace LDFLAGS
with the expected value:
sed 's!^LDFLAGS=$!LDFLAGS='-L$DEVLIBPATH/lib'!' dynfilters/Makefile
After applying this workaround, you should be able to proceed with make && make check && make install