keith-packard / snek

Snek programming language for tiny systems
GNU General Public License v3.0
294 stars 30 forks source link

ports/posix: Allow building with -static, skipping readline #70

Closed keith-packard closed 1 year ago

keith-packard commented 1 year ago

With this patch,

$ make STATIC=1

will build the posix snek port as a static executable.

It seems that libreadline doesn't like to be used with static executables because it wants to dlopen some helper libaries. To work around this, just skip readline in this case.

See issue #38 for a possible use case.

Signed-off-by: Keith Packard keithp@keithp.com