classification
Title: Update PC/pyconfig.h to support disabling auto linking
Type: enhancement Stage:
Components: Windows Versions: Python 3.9, Python 3.8, Python 3.7, Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Jean-Christophe Fillion-Robin, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2019-11-06 22:41 by Jean-Christophe Fillion-Robin, last changed 2019-11-11 15:46 by Jean-Christophe Fillion-Robin.

Messages (3)
msg356158 - (view) Author: Jean-Christophe Fillion-Robin (Jean-Christophe Fillion-Robin) Date: 2019-11-06 22:41
When configuring project using build-system generator like CMake, the linking is explicitly handled and does not to be implicitly hard-coded in pyconfig.h

Having the "pythonXY.lib" library hard-coded in pyconfig.h currently requires to explicitly specify a link directory. While possible, this require to increase the complexity of our build-system.

I suggest we introduce a new macro (e.g PY_CONFIG_AUTOLINK_DISABLED)
msg356310 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2019-11-09 22:53
I'm not totally averse to just removing the link pragmas completely, but since that's got significant compatibility impact, I'm happy with this approach.

Let's shorten the name though. "PY_NO_LINK_LIB" might be better?
msg356365 - (view) Author: Jean-Christophe Fillion-Robin (Jean-Christophe Fillion-Robin) Date: 2019-11-11 15:46
PY_NO_LINK_LIB will work well. I will work on a patch later this week.
History
Date User Action Args
2019-11-11 15:46:43Jean-Christophe Fillion-Robinsetmessages: + msg356365
2019-11-09 22:53:37steve.dowersetmessages: + msg356310
2019-11-06 22:41:31Jean-Christophe Fillion-Robincreate