I’m packaging tdb (trivialdb) library (hosted by Samba). Audit is not passing due to this complaint:
* python modules have explicit framework links These python extension modules were linked directly to a Python framework binary. They should be linked with -undefined dynamic_lookup instead of -lpython or -framework Python.
But, upstream is using python-config --ldflags to get the linking flags to link the python extension, which return
-lpython2.7 -ldl. This seems to be the correct way.
Am I supposed to convince upstream to add an option into their build system to override these flags specifically to make Homebrew happy? This is not viable.
How is this handled in other packages?