[Snek] [keith-packard/snek] 272eca: ports/posix: Allow building with -static, skipping...

Keith Packard noreply at github.com
Sat Dec 10 22:58:27 PST 2022


  Branch: refs/heads/posix-static
  Home:   https://github.com/keith-packard/snek
  Commit: 272eca2e439286075d5a84d3d5ba1d9ac1bdb9db
      https://github.com/keith-packard/snek/commit/272eca2e439286075d5a84d3d5ba1d9ac1bdb9db
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-12-10 (Sat, 10 Dec 2022)

  Changed paths:
    M ports/posix/Makefile
    M ports/posix/snek-main.c

  Log Message:
  -----------
  ports/posix: Allow building with -static, skipping readline

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.

Signed-off-by: Keith Packard <keithp at keithp.com>




More information about the Snek mailing list