Skip to content

Commit 45e55f0

Browse files
committed
Don't override provided LDFLAGS and friends.
1 parent 5f39475 commit 45e55f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ ifeq ($(BUILDTYPE),windows)
4343
else
4444
CC = clang
4545
CXX = clang++
46-
CFLAGS = \
46+
CFLAGS += \
4747
$(OPTFLAGS) \
4848
-I/opt/homebrew/include -I/usr/local/include \
4949
-Wno-unknown-warning-option
50-
CXXFLAGS = \
50+
CXXFLAGS += \
5151
$(OPTFLAGS) \
5252
-std=c++23 \
5353
-fexperimental-library \
@@ -56,7 +56,7 @@ else
5656
-Wformat-security \
5757
-Wno-deprecated-enum-float-conversion \
5858
-Wno-deprecated-enum-enum-conversion
59-
LDFLAGS =
59+
LDFLAGS +=
6060
AR = ar
6161
PKG_CONFIG = pkg-config
6262
ifeq ($(BUILDTYPE),osx)
@@ -67,7 +67,7 @@ endif
6767

6868
HOSTCC = gcc
6969
HOSTCXX = g++ -std=c++20
70-
HOSTCFLAGS = -g -O3
70+
HOSTCFLAGS += -g -O3
7171
HOSTLDFLAGS =
7272

7373
REALOBJ = .obj

0 commit comments

Comments
 (0)