forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite548455
committed
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 tothe wrong libgcc (libgcc.a instead of libgcc_s.a) and prevents emittingcorrect unwind information. It's somewhat surprising that this hasn't causedknown problems so far.Doing so requires adding path to libgcc to libpath, or linking statically tolibgcc - as the latter increases .so size substantially (for not entirelyobvious reasons), shared linking seems preferrable. It likely is worthbuilding executables with -shared-libgcc too, but I've not done that here.Discussion:https://postgr.es/m/20220820174213.d574qde4ptwdzoqz@awork3.anarazel.de1 parenta1b9b14 commite548455
1 file changed
+11
-0
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 |
| |
12 | 17 |
| |
13 | 18 |
| |
14 | 19 |
| |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
15 | 26 |
| |
16 | 27 |
| |
17 | 28 |
| |
|
0 commit comments
Comments
(0)