postgresql/src/makefiles
Andres Freund e5484554ba aix: when building with gcc, tell gcc we're building a shared library
Not passing -shared to gcc when building a shared library triggers linking to
the wrong libgcc (libgcc.a instead of libgcc_s.a) and prevents emitting
correct unwind information. It's somewhat surprising that this hasn't caused
known problems so far.

Doing so requires adding path to libgcc to libpath, or linking statically to
libgcc - as the latter increases .so size substantially (for not entirely
obvious reasons), shared linking seems preferrable.  It likely is worth
building executables with -shared-libgcc too, but I've not done that here.

Discussion: https://postgr.es/m/20220820174213.d574qde4ptwdzoqz@awork3.anarazel.de
2022-09-01 11:49:36 -07:00
..
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
Makefile.aix aix: when building with gcc, tell gcc we're building a shared library 2022-09-01 11:49:36 -07:00
Makefile.cygwin Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
Makefile.darwin Unify DLSUFFIX on Darwin 2022-07-06 07:41:33 +02:00
Makefile.freebsd Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
Makefile.linux Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
Makefile.netbsd Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
Makefile.openbsd Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
Makefile.solaris solaris: Remove unnecessary gcc / gnu ld vs sun studio differences 2022-08-07 09:36:01 -07:00
Makefile.win32 Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
pgxs.mk Default to hidden visibility for extension libraries where possible 2022-07-17 17:49:51 -07:00