Skip to content

Commit

Permalink
clang.mak: respect external build variables
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Dec 26, 2024
1 parent 8faccb3 commit 6c30dba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fdpp/clang.mak
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ USE_ASAN ?= 0
USE_UBSAN ?= 0

IFLAGS = -iquote $(srcdir)/../hdr
CPPFLAGS = $(IFLAGS) -DFDPP
CPPFLAGS += $(IFLAGS) -DFDPP
WFLAGS = -Wall -Werror=packed-non-pod -Wno-unknown-warning-option
ifneq ($(CLANG_VER),16)
WFLAGS += -Wpacked
Expand All @@ -75,10 +75,10 @@ ifeq ($(USE_UBSAN),1)
DBGFLAGS += -fsanitize=undefined -fno-sanitize=alignment,function,vptr
endif

CXXFLAGS = $(TARGETOPT) $(CPPFLAGS) $(WFLAGS) $(DBGFLAGS) $(TARGETOPT_XTRA)
CFLAGS = -Wall $(DBGFLAGS)
CXXFLAGS += $(TARGETOPT) $(CPPFLAGS) $(WFLAGS) $(DBGFLAGS) $(TARGETOPT_XTRA)
CFLAGS += -Wall $(DBGFLAGS)
CLCFLAGS = -c -fpic -Wall $(DBGFLAGS) -xc++
LDFLAGS = -shared -Wl,--build-id=sha1
LDFLAGS += -shared -Wl,--build-id=sha1

ifeq ($(XFAT),32)
CPPFLAGS += -DWITHFAT32
Expand Down

0 comments on commit 6c30dba

Please sign in to comment.