Skip to content

Commit 538752e

Browse files
committed
[build] use configure
1 parent cdbd60c commit 538752e

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/bins.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,23 @@ jobs:
227227
228228
- name: Configure & Build
229229
run: |
230+
set -x
231+
./autogen.sh
230232
mkdir build
231233
cd build
232-
cmake .. \
233-
-DCMAKE_SYSTEM_NAME=Windows \
234-
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
235-
-DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ \
236-
-DCMAKE_FIND_ROOT_PATH=/usr/x86_64-w64-mingw32 \
237-
-DCMAKE_EXE_LINKER_FLAGS="-static" \
238-
-DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++"
234+
../lnav/configure \
235+
--host=x86_64-w64-mingw32 \
236+
--enable-static \
237+
LDFLAGS="-static" \
238+
CPPFLAGS="-O2" \
239+
CXXFLAGS="-fPIC" \
240+
CFLAGS="-fPIC" \
241+
LIBS="-larchive -lssh2 -llzma -lexpat -llz4 -lz -lzstd -lssl -lcrypto -liconv -lunistring -lbrotlicommon -lcrypt32" \
242+
--sysconfdir=/etc \
243+
--prefix=$PREFIX || cat config.log
244+
245+
- name: Build
246+
run: |
239247
make -j$(nproc)
240248
241249
- name: Package

0 commit comments

Comments
 (0)