OpenAMP / openamp-system-reference

End-to-end system reference material showcasing all the different aspects of OpenAMP, on multiple vendor platforms.
Other
16 stars 15 forks source link

legacy_apps: Fix rpc demo dynamic library build #60

Open arnopo opened 1 month ago

arnopo commented 1 month ago

Add the missing -fPIC option for dynamic library generation to fix the following error:

/usr/bin/ld: CMakeFiles/rpc_demod-shared.dir///system/linux/machine/generic/rsc_table.c.o: relocation R_X86_64_PC32 against symbol `resources' can not be used when making a shared object; recompile with -fPIC