821b717583
configure: drop dynamically linked liblua comment
...
Callisto uses modified versions of the Lua standard libraries,
therefore using a dynamically linked liblua is impossible.
2024-03-25 09:46:25 +13:00
045cb437ba
configure: create config.mk before calling Lua's makefile
...
https://builds.sr.ht/~jeremy/job/1249641
2024-06-13 11:17:57 +12:00
1a0a492215
makefile: link Lua objects into libcallisto
...
Fixes: https://todo.sr.ht/~jeremy/callisto/13
2024-06-13 11:13:07 +12:00
cdb477b798
configure: link with -E
...
Fixes the error 'undefined symbol: lua_gettop' when trying to load
external Lua shared object libraries.
2024-03-19 17:48:35 +13:00
dfb81afddb
configure: compile Lua with -DLUA_USE_DLOPEN
...
Fixes errors when trying to load external dynamic libraries at runtime.
2024-03-18 09:47:21 +13:00
e0c6377779
configure: revert -Oz back to -O3
...
Apparently OpenBSD's gcc doesn't support -Oz...
2024-03-14 14:53:17 +13:00
ec2a841c04
configure: use -Oz in release mode
2024-03-14 14:50:49 +13:00
ef3da25fb5
configure: use gcc over cc
...
We don't know what the system cc supports in terms of command line
flags, it could be tcc for all we know. Aiming for gcc over cc allows
the build to succeed when cc is not gcc or clang, but the user can
always override it themselves with the -c configure switch.
2024-02-27 18:44:43 +13:00
d21cceb014
configure: separate callisto's cppflags from other libraries' cppflags
2024-02-27 18:05:21 +13:00
e86912a601
configure: add -w and -W flags for selecting libraries to support
...
-wreadline will build in support for libreadline, for example
2024-02-27 18:04:18 +13:00
b41bec792a
configure: strip compiler and linker flags of whitespace
...
Also include cppflags in the script's output
2024-02-27 18:02:33 +13:00
5313601c79
configure: add basic list utilities
...
inlist determines whether an item is in a list
removefrom returns a list with an element removed
trim strips whitespace from a string, using xargs
2024-02-27 17:59:19 +13:00
42f95378ec
configure: use neat comment style to denote different sections
2024-02-27 17:50:48 +13:00
bbd25fe4a2
configure: include -lm and -DLUA_USE_POSIX in config.mk
2024-02-18 18:14:34 +13:00
331c6acbd2
configure: fix when called from other directory
2024-02-18 18:13:39 +13:00
d4ec5248fe
configure: include -std=c99 in config.mk
...
So other makefiles can use it, e.g. the one in external/lua
2024-02-18 17:19:15 +13:00
8568ca2fb3
configure: rename error() to throw()
2024-02-18 16:54:34 +13:00
751fca09e1
switch to modular configure-based buildsystem
2024-01-25 21:12:12 +13:00