Opened 11 years ago

Closed 10 years ago

#40188 closed defect (wontfix)

python27 uses -bundle, clang++ wants -dynamiclib instead

Reported by: ghosthound Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: petrrr, cooljeanius (Eric Gallager)
Port: python27

Description

python27 uses -bundle, clang++ wants -dynamiclib instead.

When trying to build JCC (part of building pylucene, see http://lucene.apache.org/pylucene/), compilation fails with error about using -bundle. Attached patch changes python27 setup to use -dynamiclib instead of -bundle on OS X > 10.7. Tested on OS X 10.8.4, am able to build JCC (and pylucene). No other testing has (yet) been performed.

Attachments (1)

patch-configure-dynamiclib.diff (991 bytes) - added by ghosthound 11 years ago.
patch to python27 configure to use -dynamiclib instead of -bundle on OS X > 10.7

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by ghosthound

patch to python27 configure to use -dynamiclib instead of -bundle on OS X > 10.7

comment:1 Changed 11 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 10 years ago by ned-deily (Ned Deily)

This seems like a dubious change to me, i.e. trying to deal with a specific problem in upstream pylucene by modifying how all python extension modules are built. Bundles and dylibs are different animals and Python intentionally builds extension modules as bundles. I am unaware of any open upstream Python issues about this. If there is believed to be an issue in Python, it should be properly documented and opened at https://bugs.python.org.

comment:4 Changed 10 years ago by larryv (Lawrence Velázquez)

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.