- . /etc/os-release
-
- if type rpm >&2; then
- # CentOS 7 has OpenSSL 1.1 installed in a non-default location.
- if [ -d /usr/include/openssl11 ]; then
- add_flag --with-openssl-include=/usr/include/openssl11
- fi
-
- if [ -d /usr/lib64/openssl11 ]; then
- add_flag --with-openssl-lib=/usr/lib64/openssl11
- fi
-
- # RHEL 8 does not ship miniupnpc.
- if rpm -q miniupnpc-devel >&2; then
- add_flag --enable-miniupnpc
- fi
+ HOST="${HOST:-nonexistent}"
+ if [ "$HOST" = mingw ]; then
+ cross=".ci/cross/windows/amd64"