mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-07 03:22:46 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Perf/Testing ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Fix up symbols for docdb not getting published ---- #### AI description (iteration 1) #### PR Classification Bug fix for publishing symbols in the docdb project. #### PR Summary This pull request refactors the Makefile setup to fix issues with publishing symbols for docdb. - `Makefile` changes in `pg_documentdb_distributed`, `pg_documentdb`, and `pg_documentdb_core` to include a new global Makefile. - Added a new `Makefile.global` to centralize common Makefile configurations. - Updated `install_setup_pgmongo.sh` to set `EXTRA_INCLUDE_MAKEFILE` for symbol extraction.
19 lines
489 B
Makefile
19 lines
489 B
Makefile
|
|
|
|
# clean up files generated to measure code coverage
|
|
EXTRA_CLEAN += $(addprefix src/,*.gcno *.gcda) $(addprefix src/**/,*.gcno *.gcda)
|
|
EXTRA_CLEAN += build/ .deps/
|
|
|
|
PG_CONFIG ?= pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
|
|
ifeq ($(ALLOW_DEFAULT_VISIBILITY),yes)
|
|
override LDFLAGS_SL += -fvisibility=default
|
|
override CFLAGS += -fvisibility=default
|
|
override CXXFLAGS += -fvisibility=default
|
|
endif
|
|
|
|
ifneq ($(EXTRA_INCLUDE_MAKEFILE),)
|
|
include $(EXTRA_INCLUDE_MAKEFILE)
|
|
endif |