Hi @lucat.
First, thanks a lot for this tool.
Trying to build it on Linux Mint 19, we had the same compile error described in issue #2, and discovered why.
On this OS, gcc uses by default the --as-needed flag. With this flag, main program must be put before link dependencies on the command line. Otherwise, linked dependencies are dropped.
So, gcc -lsndfile -lm -lpthread leqm-nrt.c fails, but gcc leqm-nrt.c -lsndfile -lm -lpthread works.
This can be fixed for all platforms, enforcing gcc --no-as-needed flag in src/Makefile.in:
leqm_nrt_LDFLAGS = -Wl,--no-as-needed -lsndfile -lm -lpthread
Note: this line was generated automatically using a more recent version of automake tools (1.15.1) on Linux Mint 19 (aclocal + automake).
If you are interrested, I can provide a PR.
Best regards,
Hi @lucat.
First, thanks a lot for this tool.
Trying to build it on Linux Mint 19, we had the same compile error described in issue #2, and discovered why.
On this OS, gcc uses by default the
--as-neededflag. With this flag, main program must be put before link dependencies on the command line. Otherwise, linked dependencies are dropped.So,
gcc -lsndfile -lm -lpthread leqm-nrt.cfails, butgcc leqm-nrt.c -lsndfile -lm -lpthreadworks.This can be fixed for all platforms, enforcing gcc
--no-as-neededflag insrc/Makefile.in:Note: this line was generated automatically using a more recent version of automake tools (1.15.1) on Linux Mint 19 (
aclocal+automake).If you are interrested, I can provide a PR.
Best regards,