From aa4521b1f624988fef4971372043f427de1662b0 Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Fri, 3 Apr 2026 13:37:21 +0300 Subject: [PATCH] Use external LDFLAGS --- Makefile.Linux | 2 +- Makefile.win | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.Linux b/Makefile.Linux index 732c0f2..95866db 100644 --- a/Makefile.Linux +++ b/Makefile.Linux @@ -14,7 +14,7 @@ CFLAGS := -g -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOU COUT = -o LN ?= ${CC} DCFLAGS ?= -LDFLAGS ?= -fPIC -O2 -fno-strict-aliasing -pthread +LDFLAGS := -fPIC -O2 -fno-strict-aliasing -pthread $(LDFLAGS) DLFLAGS ?= -shared DLSUFFICS = .ld.so # -lpthreads may be reuqired on some platforms instead of -pthreads diff --git a/Makefile.win b/Makefile.win index b4b69b9..2980f8c 100644 --- a/Makefile.win +++ b/Makefile.win @@ -13,7 +13,7 @@ CC ?= gcc CFLAGS := -O2 -s -c -mthreads -DWITH_STD_MALLOC -DWITH_WSAPOLL $(CFLAGS) COUT = -o LN ?= $(CC) -LDFLAGS ?= -O2 -s -mthreads +LDFLAGS := -O2 -s -mthreads $(LDFLAGS) DLFLAGS ?= -shared DLSUFFICS = .dll LIBS := -lws2_32 -lodbc32 -ladvapi32 -luser32 $(LIBS)