[issue29440] _dbm requires -lgdbm if gdbm is built as static libraries

2019-03-02 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I gave up building gdbm as a static library. It brings more headache than benefits. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue29440] _dbm requires -lgdbm if gdbm is built as static libraries

2017-02-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Sorry, -lgdbm should come after -lgdbm_compat, or symbols in libgdbm.a are still not resolved. I don't know why - linking is a magic :( -- Added file: http://bugs.python.org/file46517/gdbm.patch ___ Python tracker

[issue29440] _dbm requires -lgdbm if gdbm is built as static libraries

2017-02-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Add the developer who wrote this line (issue15044) -- nosy: +ncoghlan ___ Python tracker ___

[issue29440] _dbm requires -lgdbm if gdbm is built as static libraries

2017-02-03 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: In setup.py, _dbm links to gdbm_compat only. If gdbm is built as dynamic libraries, libgdbm_compat.so has a NEEDED flag for libgdbm.so, so both symbols in libgdbm and libgdbm_compat can be used. However, as static libraries does not provide such a flag,