python-underlinking.patch 1.1 KB

1234567891011121314151617181920212223242526
  1. diff -ur pygtksourceview-2.6.0.orig/configure.ac pygtksourceview-2.6.0/configure.ac
  2. --- pygtksourceview-2.6.0.orig/configure.ac 2009-03-21 22:06:40.000000000 +0200
  3. +++ pygtksourceview-2.6.0/configure.ac 2010-09-01 20:44:29.047624299 +0300
  4. @@ -124,6 +124,9 @@
  5. fi
  6. AC_SUBST(CODEGEN)
  7. +MODULE_LIBS=`python-config --libs`
  8. +AC_SUBST(MODULE_LIBS)
  9. +
  10. JH_ADD_CFLAG([-Wall])
  11. JH_ADD_CFLAG([-fno-strict-aliasing])
  12. diff -ur pygtksourceview-2.6.0.orig/Makefile.am pygtksourceview-2.6.0/Makefile.am
  13. --- pygtksourceview-2.6.0.orig/Makefile.am 2008-11-10 23:57:58.000000000 +0200
  14. +++ pygtksourceview-2.6.0/Makefile.am 2010-09-01 20:45:20.793652643 +0300
  15. @@ -27,7 +27,7 @@
  16. # pygtksourceview2 module
  17. pyexec_LTLIBRARIES = gtksourceview2.la
  18. -gtksourceview2_la_LDFLAGS = -module -avoid-version -export-symbols-regex initgtksourceview2 $(no_undefined) $(pyd_ext)
  19. +gtksourceview2_la_LDFLAGS = -module -avoid-version -export-symbols-regex initgtksourceview2 $(no_undefined) $(pyd_ext) $(MODULE_LIBS)
  20. gtksourceview2_la_CFLAGS = $(PYGTKSOURCEVIEW_CFLAGS)
  21. gtksourceview2_la_LIBADD = $(PYGTKSOURCEVIEW_LIBS) $(PYTHON_LIBS)
  22. gtksourceview2_la_SOURCES = gtksourceview2module.c