diff options
| author | Michael Paquier | 2012-05-28 00:00:20 +0000 |
|---|---|---|
| committer | Michael Paquier | 2012-05-28 00:05:46 +0000 |
| commit | e66ae01f07e9b70372459a5f197e35b86c22cf62 (patch) | |
| tree | b1efec17fc0db1cba4311c5a237abdacf176d626 /src | |
| parent | 4e8f58a8083df2056fbbf553fcdff958e96b768d (diff) | |
Add flags in LINK.shared: -undefined suppress -flat_namespace
This makes compilation of GTM possible on FreeBSD based system like
Mac-OSX as GTM uses pthread natively and it is not the case of vanilla
Postgres.
This way of doing does not look to be the cleanest one, but it does
not show issues with Linux-based platforms.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.shlib | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib index a5cf6c6c16..e393fc64c2 100644 --- a/src/Makefile.shlib +++ b/src/Makefile.shlib @@ -130,7 +130,7 @@ ifeq ($(PORTNAME), darwin) ifneq ($(SO_MAJOR_VERSION), 0) version_link = -compatibility_version $(SO_MAJOR_VERSION) -current_version $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) endif - LINK.shared = $(COMPILER) -dynamiclib -install_name $(libdir)/lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX) $(version_link) $(exported_symbols_list) -multiply_defined suppress + LINK.shared = $(COMPILER) -dynamiclib -install_name $(libdir)/lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX) $(version_link) $(exported_symbols_list) -multiply_defined suppress -undefined suppress -flat_namespace shlib = lib$(NAME).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)$(DLSUFFIX) shlib_major = lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX) else |
