Chips-fr / uae4arm-rpi

Port of uae4arm on Raspberry Pi and Libretro
73 stars 42 forks source link

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

Open heitbaum opened 1 year ago

heitbaum commented 1 year ago

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:

Chips-fr commented 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.