cartesi / machine-emulator

The off-chain implementation of the Cartesi Machine
GNU Lesser General Public License v3.0
64 stars 33 forks source link

Make packaging of cartesi machine easier #120

Open edubart opened 1 year ago

edubart commented 1 year ago

Context

Currently we provide Debian package for the emulator, but it would also be nice to make easier to package the Cartesi Machine for any Linux distributions and even other operating systems. In this issue I listed suggestions and changes to improve this after packaging it for ArchLinux (see its build script in https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=cartesi-machine).

Suggested enhancements

mpolitzer commented 1 year ago

We can use this option: -Wl,-rpath,'$ORIGIN/../lib to make the executable find the libraries it uses. As a way to eliminate the patchelf.