patchGNU Autoconf Archive - Patches: patch #8309, ax_python_devel.m4 - add SYSLIBs...

 
 

patch #8309: ax_python_devel.m4 - add SYSLIBs to PYTHON_EXTRA_LIBS

Submitter:  None
Submitted:  Fri 07 Feb 2014 09:11:16 PM UTC
 
Priority:  5 - Normal Status:  Done
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Mon 24 Feb 2014 03:35:09 PM UTC, comment #3: 

Pushed in 6745ad4. Thank you very much for the patch!

Peter Simons <simons>
Project Administrator
Tue 11 Feb 2014 01:13:46 AM UTC, comment #2: 

It's needed when the python library has been built statically. The math symbols like sin, cos, etc are left undefined in the .a file so we must inform the user of the library to link against libm, whose linker argument (-lm) is defined under SYSLIBS.  Hope it helps.

Anonymous
Mon 10 Feb 2014 09:50:00 PM UTC, comment #1: 

I'm curious why this patch is necessary, i.e. what is the problem that it solves?

Peter Simons <simons>
Project Administrator
Fri 07 Feb 2014 09:11:16 PM UTC, original submission:  

$ git diff .
diff --git a/config/ax_python_devel.m4 b/config/ax_python_devel.m4
index cf2163c..f431dd0 100644
--- a/config/ax_python_devel.m4
+++ b/config/ax_python_devel.m4
@@ -265,7 +265,7 @@ EOD`
        if test -z "$PYTHON_EXTRA_LIBS"; then
           PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
                 conf = distutils.sysconfig.get_config_var; \
-                print (conf('LIBS'))"`
+                print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
        fi
        AC_MSG_RESULT([$PYTHON_EXTRA_LIBS])
        AC_SUBST(PYTHON_EXTRA_LIBS)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #30482:  ax_python_devel.m4 added by None (11KiB - application/x-m4 - Patched version attached)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by simons
  • -email is unavailable- added by simons
  • -email is unavailable- added by simons
  • -email is unavailable- added by simons
  • -email is unavailable- added by simons
  • -email is unavailable- added by None (Submitted the item)
  •  

     

     

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-08 simons StatusReady For Test Done
        Open/ClosedOpen Closed
    2014-02-24 simons StatusNeed Info Ready For Test
    2014-02-10 simons StatusNone Need Info
        Assigned toNone simons
        Carbon-Copy- Added sebastian huber
        Carbon-Copy- Added rafael laboissiere
        Carbon-Copy- Added matteo settenvini
        Carbon-Copy- Added horst knorr
        Carbon-Copy- Added daniel mullner
    2014-02-07 None Attached File- Added ax_python_devel.m4, #30482

    Back to the top


    Powered by Savane 3.9