fix(make): correct luasocket compiling
Some checks failed
gitea-sync/antos/pipeline/head There was a failure building this commit

This commit is contained in:
DanyLE 2024-03-10 01:39:56 +01:00
parent 10aa6ab208
commit 7ce96d1c31
2 changed files with 9 additions and 5 deletions

4
Jenkinsfile vendored
View File

@ -101,10 +101,14 @@ pipeline {
stages
{
stage('Prepare dependencies') {
agent {
node { label'workstation' }
}
steps {
sh'''
git submodule update --init
make clean || true
rm -rf build/* || true
'''
}
}

View File

@ -57,13 +57,13 @@ luasocket:
make -C $(ROOT_DIR)/antd/luasocket linux
LUAV=5.4 \
LUAINC_linux=$(ROOT_DIR)/antd/silk/modules/lua/lua54/ \
LUAPREFIX_linux=$(DESTDIR) \
LUAPREFIX_linux=$(BUILD_PREFIX) \
PLAT=linux \
make -C $(ROOT_DIR)/antd/luasocket install-unix
-mkdir -p $(DESTDIR)/lib/lua
cp -rf $(DESTDIR)/lib/lua/5.4/* $(DESTDIR)/opt/www/lib/lua/
cp -rf $(DESTDIR)/share/lua/5.4/* $(DESTDIR)/opt/www/lib/lua/
rm -rf $(DESTDIR)/lib $(DESTDIR)/share
-mkdir -p $(INSTALL_DIR)/lib/lua
cp -rf $(INSTALL_DIR)/lib/lua/5.4/* $(INSTALL_DIR)/lib/lua/
cp -rf $(INSTALL_DIR)/share/lua/5.4/* $(INSTALL_DIR)/lib/lua/
rm -rf $(INSTALL_DIR)/lib/lua/5.4 $(INSTALL_DIR)/share
antd-% sil%: httpd
@echo "Building $@"