[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

public extension linked with libpython* vs. -Wl,-no-undefined



Hi all,

I'm building a package with Python support and would like to reduce
the number of warnings that dh_python2 gives me.

One of them is

   public extension linked with libpython2.7

for a number of libraries. It is true that libpython2.7 is linked into them,

$ readelf -d /path/to/_ML.so
[...]
 0x0000000000000001 (NEEDED)             Shared library: [libpython2.7.so.1.0]
[...]

but when I don't, builds with "-Wl,-no-undefined" will fail.

What is the reason for discouraging explicit links with libpython*?

Cheers,
Nico


Reply to: