From 6ecc201017729e3065905fe7ef085d2d1f49f06c Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Wed, 10 May 2023 18:06:41 +0100 Subject: [PATCH] Ensure LDLIBS is consistantly treated --- Makefile | 3 ++- tools/Makefile | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index bb1a2f3..ef9ce32 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ export CC export AR export CFLAGS export LDFLAGS +export LDLIBS export TOOLS_ADDITIONAL include config.mak @@ -159,7 +160,7 @@ endif ifeq ($(CONFIG_TARGET),mingw) CFLAGS+=-I. -I./win32 -DWIN32 LDLIBS+=$(abspath win32/n2n_win32.a) -LDLIBS+=-lws2_32 -liphlpapi +LDLIBS+=-lnetapi32 -lws2_32 -liphlpapi N2N_DEPS+=win32/n2n_win32.a SUBDIRS+=win32 endif diff --git a/tools/Makefile b/tools/Makefile index 2966e81..8a49cdd 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -6,13 +6,9 @@ DEBUG?=-g3 HEADERS=$(wildcard include/*.h) CFLAGS+=-I../include -LDLIBS+=-ln2n -LDLIBS+=$(LDLIBS_EXTRA) ifeq ($(CONFIG_TARGET),mingw) CFLAGS+=-I../win32 -LDLIBS+=$(abspath ../win32/n2n_win32.a) -LDLIBS+=-lnetapi32 -lws2_32 -liphlpapi endif CFLAGS+=$(DEBUG) LDFLAGS+=-L..