Skip to content

Commit

Permalink
Include sys/wait.h for MINGW64
Browse files Browse the repository at this point in the history
  • Loading branch information
kibook committed Apr 3, 2024
1 parent 08b3566 commit 207085c
Show file tree
Hide file tree
Showing 36 changed files with 656 additions and 8 deletions.
3 changes: 0 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ install the necessary packages from pacman:

pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-pkgconf mingw-w64-x86_64-libxml2 mingw-w64-x86_64-libxslt mingw-w64-x86_64-libsystre vim

You will also need to install a sys/wait.h header for Windows:
<https://github.com/win32ports/sys_wait_h>

## Building and installing

Run the following commands to build the executables, and install both
Expand Down
8 changes: 8 additions & 0 deletions build-mingw64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

out=build/mingw64

make
mkdir -p "$out"
cp tools/s1kd-*/s1kd-*.exe "$out"
ldd "$out"/s1kd-*.exe | awk '{print $3}' | grep '^/mingw64' | sort -u | xargs cp -t "$out"
5 changes: 0 additions & 5 deletions doc/DMC-S1KDTOOLS-A-00-00-00-00A-920A-D_EN-CA.XML
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,6 @@
<para>
<verbatimText verbatimStyle="vs24">pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-pkgconf mingw-w64-x86_64-libxml2 mingw-w64-x86_64-libxslt mingw-w64-x86_64-libsystre vim</verbatimText>
</para>
<para>You will also need to install a sys/wait.h header for Windows: <externalPubRef xlink:href="https://github.com/win32ports/sys_wait_h">
<externalPubRefIdent>
<externalPubCode>https://github.com/win32ports/sys_wait_h</externalPubCode>
</externalPubRefIdent>
</externalPubRef></para>
</levelledPara>
</levelledPara>
<levelledPara>
Expand Down
Loading

0 comments on commit 207085c

Please sign in to comment.