uae4arm-rpi icon indicating copy to clipboard operation
uae4arm-rpi copied to clipboard

Build of uae4arm-rpi fails when -lmpg123 is not in /usr/lib

Open heitbaum opened this issue 1 year ago • 1 comments

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

heitbaum avatar Apr 30 '23 13:04 heitbaum

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.

Chips-fr avatar Jun 17 '23 18:06 Chips-fr