Skip to content

Instantly share code, notes, and snippets.

@starius
Created March 9, 2015 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starius/8e165ccfa2ba97c975c8 to your computer and use it in GitHub Desktop.
Save starius/8e165ccfa2ba97c975c8 to your computer and use it in GitHub Desktop.
Compile luaprompt under Cygwin
#!/bin/bash
# Install Lua, libreadline in Cygwin
gcc luap.c prompt.c -o luap.exe -DHAVE_ASPRINTF -DHAVE_LIBREADLINE \
-DHAVE_READLINE_READLINE_H -DHAVE_READLINE_HISTORY \
-DHAVE_READLINE_HISTORY_H -D_GNU_SOURCE -DCOMPLETE_KEYWORDS \
-DCOMPLETE_MODULES -DCOMPLETE_TABLE_KEYS -DCOMPLETE_FILE_NAMES \
-lreadline -lhistory -llua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment