Return LDFLAGS setting to build/platform/python for Windows
Unlike ELF platforms, Windows requires .lib for dynamic linking. So PYMODULEs shall be linked against PythonXX.lib to work with PythonXX.dll which is the code of the Python program on Windows.
@@ -54,9 +54,13 @@ IF (USE_SYSTEM_PYTHON)
DECLARE_EXTERNAL_RESOURCE(EXTERNAL_PYTHON sbr:629042628)
ENDIF()
CFLAGS(GLOBAL "/I$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/include")
+ LDFLAGS("/LIBPATH:$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/libs")
ENDIF()
ELSEIF (NOT USE_ARCADIA_PYTHON)
CFLAGS(GLOBAL $PYTHON_FLAGS)
+ IF (OS_WINDOWS)
+ LDFLAGS_FIXED($PYTHON_LDFLAGS $PYTHON_LIBRARIES)
+ ENDIF()
ENDIF()
END()
