summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2014-09-12 15:52:14 (GMT)
committer Jaromil <jaromil@dyne.org>2014-09-12 15:52:14 (GMT)
commit3a8166c3ef418893cc2b06d50de5af0b32c177cd (patch)
tree0927234794a65ad9426af23b52ab71932b9ae733
parentbd33080a4cf2781c86039f10a3deb361ceda8bcb (diff)
fix for lua static build
-rw-r--r--build/lang/conf.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/lang/conf.zsh b/build/lang/conf.zsh
index 6d29159..5a90859 100644
--- a/build/lang/conf.zsh
+++ b/build/lang/conf.zsh
@@ -7,6 +7,8 @@
prepare_sources
+PATH=$SYS/wrap:$PATH
+
## lua
{ test ! -r lua.done } && {
act "compiling lua"
@@ -14,10 +16,10 @@ prepare_sources
for s in `find . -name '*.c'`; do
{ test -r ${s%.*}.o } || {
print "[CC] ${ZTARGET}-gcc ${=CFLAGS} -DLUA_USE_POSIX -DLUA_COMPAT_ALL -c ${s}"
- ${ZTARGET}-gcc ${=CFLAGS} -DLUA_USE_POSIX -DLUA_COMPAT_ALL -c ${s} }; done
+ static-c++ ${=CFLAGS} -DLUA_USE_POSIX -DLUA_COMPAT_ALL -c ${s} }; done
luas=`find . -name '*.o' | grep -v luac.o`
print "[LD] ${ZTARGET}-ld -o lua ${=luas} ${=LDFLAGS} -lncursesw -lm"
- ${ZTARGET}-ld -o lua ${=luas} ${=LDFLAGS} -lm -lc -lstdc++ -ldl
+ static-c++ -o lua ${=luas} ${=LDFLAGS} -lm -lc -lstdc++ -ldl
{ test $? = 0 } && {
touch ../../lua.done
notice "lua compiled"