Skip to content

gcc compile issue #4

Description

@bcourtine

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions