Do not send .la files through find_library.
authorJohan Dahlin <johan@gnome.org>
Thu, 21 Aug 2008 13:33:08 +0000 (13:33 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Thu, 21 Aug 2008 13:33:08 +0000 (13:33 +0000)
2008-08-21  Johan Dahlin  <johan@gnome.org>

    * giscanner/glibtransformer.py:
    Do not send .la files through find_library.

svn path=/trunk/; revision=435

ChangeLog
giscanner/glibtransformer.py

index ba63513..8912429 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-21  Johan Dahlin  <johan@gnome.org>
+
+       * giscanner/glibtransformer.py:
+       Do not send .la files through find_library.
+
 2008-08-21  Colin Walters  <walters@verbum.org>
 
        * girepository/girparser.c (g_irepository_require):
index c2a41e0..6e3e7cc 100644 (file)
@@ -55,9 +55,11 @@ class GLibTransformer(object):
     # Public API
 
     def add_library(self, libname):
+        # For testing mainly.
         if libname.endswith('.la'):
             libname = extract_libtool(libname)
-        libname = find_library(libname)
+        else:
+            libname = find_library(libname)
         self._libraries.append(ctypes.cdll.LoadLibrary(libname))
 
     def parse(self):