You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-commits@lucene.apache.org by va...@apache.org on 2017/07/11 19:27:08 UTC

svn commit: r1801650 - in /lucene/pylucene/trunk/jcc: CHANGES setup.py

Author: vajda
Date: Tue Jul 11 19:27:08 2017
New Revision: 1801650

URL: http://svn.apache.org/viewvc?rev=1801650&view=rev
Log:
 - added 'm' suffix to linux -lpython statement for shared jcc lib

Modified:
    lucene/pylucene/trunk/jcc/CHANGES
    lucene/pylucene/trunk/jcc/setup.py

Modified: lucene/pylucene/trunk/jcc/CHANGES
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/CHANGES?rev=1801650&r1=1801649&r2=1801650&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/CHANGES (original)
+++ lucene/pylucene/trunk/jcc/CHANGES Tue Jul 11 19:27:08 2017
@@ -2,6 +2,7 @@ Version 3.0 ->
 -------------------
  - fixed bug PYLUCENE-36 (Paulo Villegas)
  - reworked type construction to use PyType_FromSpecWithBases (Python 3)
+ - added 'm' suffix to linux -lpython statement for shared jcc lib
  - 
 
 Version 2.23 -> 3.0

Modified: lucene/pylucene/trunk/jcc/setup.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/setup.py?rev=1801650&r1=1801649&r2=1801650&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/setup.py (original)
+++ lucene/pylucene/trunk/jcc/setup.py Tue Jul 11 19:27:08 2017
@@ -361,7 +361,8 @@ def main(debug):
                           '-compatibility_version', jcc_ver]
         elif platform == 'linux':
             kwds["extra_link_args"] = \
-                lflags + ['-lpython%s.%s' %(sys.version_info[0:2])]
+                lflags + ['-lpython%s.%s%s' %(
+                    sys.version_info[0:2] + ('' if using_python2 else 'm',))]
             kwds["force_shared"] = True    # requires jcc/patches/patch.43
         elif platform in IMPLIB_LFLAGS:
             jcclib = 'jcc%s%s.lib' %(py_version_suffix, debug and '_d' or '')