mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Allow windres to run when cross compiling
This commit is contained in:
parent
0dd94a1123
commit
0545a54b13
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
|
@ -705,6 +705,7 @@ jobs:
|
|||
./autogen.sh
|
||||
export CC=${{ matrix.arch }}-gcc
|
||||
export AR=${{ matrix.arch }}-ar
|
||||
export WINDRES=${{ matrix.arch }}-windres
|
||||
./configure --host ${{ matrix.arch }}
|
||||
make
|
||||
|
||||
|
|
2
Makefile
2
Makefile
|
@ -209,7 +209,7 @@ win32:
|
|||
$(MAKE) -C $@
|
||||
|
||||
win32/edge_rc.o: win32/edge.rc win32/edge.manifest
|
||||
windres win32/edge.rc -O coff -o win32/edge_rc.o
|
||||
$(WINDRES) win32/edge.rc -O coff -o win32/edge_rc.o
|
||||
|
||||
src/edge.o: $(N2N_DEPS)
|
||||
src/supernode.o: $(N2N_DEPS)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
N2N_VERSION=@N2N_VERSION@
|
||||
CC=@CC@
|
||||
AR=@AR@
|
||||
WINDRES=@WINDRES@
|
||||
CFLAGS=@CFLAGS@ -I./include
|
||||
LDFLAGS=@LDFLAGS@ -L.
|
||||
LDLIBS_EXTRA=@N2N_LIBS_EXTRA@
|
||||
|
|
|
@ -12,6 +12,9 @@ fi
|
|||
if test "${AR+set}" != set; then
|
||||
AR=ar
|
||||
fi
|
||||
if test "${WINDRES+set}" != set; then
|
||||
WINDRES=windres
|
||||
fi
|
||||
|
||||
N2N_LIBS_EXTRA=
|
||||
|
||||
|
@ -149,6 +152,7 @@ AC_DEFINE_UNQUOTED(PACKAGE_OSNAME, "${OSNAME}", [OS name])
|
|||
|
||||
AC_SUBST(CC)
|
||||
AC_SUBST(AR)
|
||||
AC_SUBST(WINDRES)
|
||||
AC_SUBST(CFLAGS)
|
||||
AC_SUBST(LDFLAGS)
|
||||
AC_SUBST(N2N_VERSION)
|
||||
|
|
Loading…
Reference in New Issue
Block a user