n2n/scripts/hack_fakeautoconf.sh
Hamish Coleman 1accc76ad3 Fix the building the win32 subdir.
It looks like the github windows build environment is not correctly
inheriting environment variables.  Which is strange, as that has not
been changed with the recent updates.  Include the vars directly as a
workaround (and plan to refactor later)
2023-04-30 20:40:50 -05:00

22 lines
376 B
Bash
Executable File

#!/bin/sh
#
# Specifically for windows, where installing autoconf looks suspiciously
# like boiling the ocean.
cat >config.mak <<EOF
CC=gcc
AR=ar
CFLAGS=$CFLAGS -g -O2 -I./include
LDFLAGS=$LDFLAGS -L.
N2N_LIBS_EXTRA=$LDLIBS
EOF
cat >tools/config.mak <<EOF
TOOLS_ADDITIONAL=
EOF
cat <<EOF >include/config.h
#define PACKAGE_VERSION "FIXME"
#define PACKAGE_OSNAME "FIXME"
EOF