Skip to content

Commit

Permalink
Fix build with clang on linux
Browse files Browse the repository at this point in the history
Clang does not support the -fno-gnu-unique argument. Previously this was
not added if BSD was true (presumably to work around FreeBSD support)
but there is a CLANG variable serving that purpose. Use that instead.

Signed-off-by: Violet Purcell <[email protected]>
  • Loading branch information
vimproved committed Sep 5, 2023
1 parent a627caf commit 05f2804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ CXXFLAGS += -fvisibility-inlines-hidden
endif

ifneq ($(MACOS_OR_WASM_OR_WINDOWS),true)
ifneq ($(BSD),true)
ifneq ($(CLANG),true)
BASE_FLAGS += -fno-gnu-unique
endif
endif
Expand Down

0 comments on commit 05f2804

Please sign in to comment.