Use external LDFLAGS

This commit is contained in:
Vladimir Dubrovin 2026-04-03 13:37:21 +03:00
parent 4df7a09a2a
commit aa4521b1f6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)