mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 09:40:30 +00:00
Fixes failed run https://github.com/CESNET/UltraGrid/actions/runs/3894640814/jobs/6648919900. cmd.exe script for unknown reason ceased to work, copied appropriate parts of script to our script. + use shell debug flag for the script
16 lines
452 B
Bash
Executable File
16 lines
452 B
Bash
Executable File
#!/bin/sh -eux
|
|
|
|
git clone --depth 1 https://github.com/miniupnp/libnatpmp
|
|
cd libnatpmp
|
|
|
|
gcc -c -Wall -Os -DWIN32 -DNATPMP_STATICLIB -DENABLE_STRNATPMPERR getgateway.c
|
|
gcc -c -Wall -Os -DWIN32 -DNATPMP_STATICLIB -DENABLE_STRNATPMPERR natpmp.c
|
|
gcc -c -Wall -Os -DWIN32 wingettimeofday.c
|
|
ar cr natpmp.a getgateway.o natpmp.o wingettimeofday.o
|
|
|
|
cp natpmp.a /usr/local/lib/libnatpmp.a
|
|
cp natpmp_declspec.h natpmp.h /usr/local/include
|
|
cd -
|
|
rm -rf libnatpmp
|
|
|