As mentioned here , what you probably want is the -rpath linker -rpath .
This way you can set the default search path for the binary. It looks like you are already using -rpath in your makefile, but you specified the wrong path:
LIBS = -L$(LIB) -lfuse -lsqlite3 -lkw_taglib -ltag_c -ltag -Wl,-rpath=.
Thus, the binary will be searched in the current directory for dyn libraries. However, you add ../lib to your LD_LIBRARY_PATH later to execute the binary, so this is the path . seems wrong.
Please try the following fix:
LIBS = -L$(LIB) -lfuse -lsqlite3 -lkw_taglib -ltag_c -ltag -Wl,-rpath=../lib
For this you do not need to specify LD_LIBRARY_PATH to execute.
source share