-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o Set -Wno-compound-token-split-by-macro needed to get things
building up with clang > 11. o Unify common code in the perl modules to fix db_perlvdb as well with clang > 11.
- Loading branch information
Showing
3 changed files
with
35 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# define it (or export this) to the dir where xsubpp is on your system (if | ||
# not on the default path. | ||
#PERLBINDIR= | ||
|
||
LIBS= | ||
|
||
ifeq ($(CC_NAME), gcc) | ||
DEFS+=-Wno-unused -Wno-redundant-decls | ||
endif | ||
ifeq ($(CC_NAME), clang) | ||
DEFS+=-Wno-unused -Wno-redundant-decls $(shell test `${CC} -dumpversion | sed 's|[.].*||'` -gt 11 && echo -Wno-compound-token-split-by-macro) | ||
endif | ||
|
||
ifeq ($(PERLLDOPTS),) | ||
LIBS+=$(shell perl -MExtUtils::Embed -e ldopts) | ||
else | ||
LIBS+=$(PERLLDOPTS) | ||
endif | ||
|
||
ifeq ($(PERLCCOPTS),) | ||
DEFS+=$(shell perl -MExtUtils::Embed -e ccopts) | ||
else | ||
DEFS+=$(PERLCCOPTS) | ||
endif | ||
|
||
# if perl requires _FORTIFY_SOURCE, we need to enable optimizations | ||
ifneq (,$(findstring -D_FORTIFY_SOURCE,$(DEFS))) | ||
DEFS+=-O2 | ||
endif | ||
|
||
auto_gen= | ||
|
||
include ../../Makefile.modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters