Files
documentdb/Makefile.global
Vinod Sridharan ecf2f6c28b Merged PR 1542894: [Symbols] Fix up publishing symbols for docdb
### 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.
2025-01-15 07:48:40 +00:00

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