Open heitbaum opened 1 year ago
I think i can change LDFLAGS := -lz -lpthread -lFLAC -lmpg123 -ldl to LDFLAGS += -lz -lpthread -lFLAC -lmpg123 -ldl
For the unix platform so that LDFLAGS could be inherit.
For rpi target the makefile already inherit LDFLAGS.
In LibreELEC libraries are not always made available in the build /usr/lib directory, if they are not to be shared across all of the environment. The packages “are” expected to call pkgconfig to get the library locations. To workaround this, we have added a sed inline script to update the LDFLAGS := to include the library’s path.
If the package could be updated to use pkgconfig or alternatively allow LDFLAGS or a -D to pass the directory in.
Ref: