diff -r 1adeac2a8714 Lib/distutils/command/build_ext.py --- a/Lib/distutils/command/build_ext.py Fri Oct 10 11:14:49 2014 +0300 +++ b/Lib/distutils/command/build_ext.py Fri Oct 10 17:08:34 2014 +0800 @@ -170,6 +170,7 @@ self.include_dirs.append(plat_py_include) self.ensure_string_list('libraries') + self.ensure_string_list('link_objects') # Life is easier if we're not forever checking for None, so # simplify these options to empty lists if unset diff -r 1adeac2a8714 Lib/distutils/tests/test_build_ext.py --- a/Lib/distutils/tests/test_build_ext.py Fri Oct 10 11:14:49 2014 +0300 +++ b/Lib/distutils/tests/test_build_ext.py Fri Oct 10 17:08:34 2014 +0800 @@ -195,6 +195,13 @@ cmd.finalize_options() self.assertEqual(cmd.rpath, ['one', 'two']) + # make sure cmd.link_objects is turned into a list + # is it's a string + cmd = self.build_ext(dist) + cmd.link_objects = 'one two,three' + cmd.finalize_options() + self.assertEqual(cmd.link_objects, ['one', 'two', 'three']) + # XXX more tests to perform for win32 # make sure define is turned into 2-tuples