Skip to content

Instantly share code, notes, and snippets.

@mischief
Created February 13, 2026 07:17
Show Gist options
  • Select an option

  • Save mischief/334e2e87dfe3afcc7f7d31e8ae8b7986 to your computer and use it in GitHub Desktop.

Select an option

Save mischief/334e2e87dfe3afcc7f7d31e8ae8b7986 to your computer and use it in GitHub Desktop.
notes for lua on openbsd

cqueues does not really like libressl, so

env ALL_LDFLAGS="$(pkg-config --libs eopenssl36) -Wl,-rpath=/usr/local/lib/eopenssl36" \
   luarocks install --local --force cqueues OPENSSL_INCDIR=/usr/local/include/eopenssl36/

to force openssl from packages. cqueues goofy makefile doesn't look at LDFLAGS.

for added fun, http rock

env ALL_LDFLAGS="$(pkg-config --libs eopenssl36) -Wl,-rpath=/usr/local/lib/eopenssl36" \
    CFLAGS="$(pkg-config --cflags eopenssl36)" \
    LDFLAGS="$(pkg-config --libs eopenssl36) -Wl,-rpath=$(pkg-config --variable=libdir eopenssl36)" \
    luarocks install --local http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment