]> Dogcows Code - chaz/openbox/commitdiff
use -export-dynamic when linking libpython.a
authorDana Jansens <danakj@orodu.net>
Thu, 16 Jan 2003 09:30:28 +0000 (09:30 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 16 Jan 2003 09:30:28 +0000 (09:30 +0000)
m4/python.m4
src/Makefile.am

index df8fdc2a7c7ef078ad3a71429744473c82062d84..cd5117d09c9dd84849e04aa98644c4df9be329ec 100644 (file)
@@ -2,7 +2,8 @@
 #
 # Checks for Python and tries to get the include path to 'Python.h', and
 # the libpython library.
-# It provides the $(PYTHON_CFLAGS) $(PYTHON_LIBS) output variables.
+# It provides the $(PYTHON_CFLAGS) $(PYTHON_LIBS) $(PYTHON_LDFLAGS) output
+# variables.
 AC_DEFUN([PYTHON_DEVEL],
 [
   AC_REQUIRE([AM_PATH_PYTHON])
@@ -41,17 +42,20 @@ AC_DEFUN([PYTHON_DEVEL],
     if test -r "$i/libpython$PYTHON_VERSION.so"; then
       PYLIB="$i/libpython$PYTHON_VERSION.so"
       PYTHON_LIBS="-L$i -lpython$PYTHON_VERSION"
+      PYTHON_LDFLAGS=""
       break
     else
       if test -r "$i/libpython$PYTHON_VERSION.a"; then
         PYLIB="$i/libpython$PYTHON_VERSION.a"
         PYTHON_LIBS="-L$i -lpython$PYTHON_VERSION -lpthread -ldl -lutil -lm"
+        PYTHON_LDFLAGS="-export-dynamic"
         break
       else
         # look for really old versions
         if test -r "$i/libPython.a"; then
           PYLIB="$i/libPython.a"
           PYTHON_LIBS="-L$i -lModules -lPython -lObjects -lParser"
+          PYTHON_LDFLAGS="-export-dynamic"
           break
         fi
       fi
@@ -64,4 +68,5 @@ AC_DEFUN([PYTHON_DEVEL],
     AC_MSG_ERROR([cannot find python library])
   fi
   AC_SUBST([PYTHON_LIBS])
+  AC_SUBST([PYTHON_LDFLAGS])
 ])
index bf806ac51e3456e49cff1bbbed16572d28e7735b..b2799cf744483674ce4713e8d3847fc7acdc1f45 100644 (file)
@@ -21,6 +21,7 @@ openbox3_SOURCES= actions.cc client.cc frame.cc openbox.cc screen.cc \
                   main.cc backgroundwidget.cc labelwidget.cc \
                   buttonwidget.cc python.cc bindings.cc \
                   openbox_wrap.cc
+openbox3_LDFLAGS= $(PYTHON_LDFLAGS)
 
 script_DATA = openbox.py
 
This page took 0.022733 seconds and 4 git commands to generate.