uae4arm-rpi
uae4arm-rpi copied to clipboard
Build of uae4arm-rpi fails when -lmpg123 is not in /usr/lib
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:
- https://github.com/LibreELEC/LibreELEC.tv/issues/7791
- https://github.com/LibreELEC/LibreELEC.tv/pull/7804
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.