Changeset 176198 in webkit


Ignore:
Timestamp:
Nov 17, 2014 2:48:39 AM (9 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Add library search paths from LDFLAGS before pkg-config --libs
https://bugs.webkit.org/show_bug.cgi?id=136018

Patch by Ting-Wei Lan <Ting-Wei Lan> on 2014-11-17
Reviewed by Carlos Garcia Campos.

It is possible that the order of -L arguments in the output of
pkg-config is wrong, which causes the linker to find the wrong
version (usually older version) of libraries when running
gtkdoc-scangobj.

  • gtk/gtkdoc.py:

(GTKDoc._run_gtkdoc_scangobj):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r176196 r176198  
     12014-11-17  Ting-Wei Lan  <lantw44@gmail.com>
     2
     3        [GTK] Add library search paths from LDFLAGS before pkg-config --libs
     4        https://bugs.webkit.org/show_bug.cgi?id=136018
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        It is possible that the order of -L arguments in the output of
     9        pkg-config is wrong, which causes the linker to find the wrong
     10        version (usually older version) of libraries when running
     11        gtkdoc-scangobj.
     12
     13        * gtk/gtkdoc.py:
     14        (GTKDoc._run_gtkdoc_scangobj):
     15
    1162014-11-17  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
    217
  • trunk/Tools/gtk/gtkdoc.py

    r174309 r176198  
    314314        ldflags = self.ldflags
    315315        if self.library_path:
    316             ldflags = ' "-L%s" ' % self.library_path + ldflags
     316            additional_ldflags = ''
     317            for arg in env.get('LDFLAGS', '').split(' '):
     318                if arg.startswith('-L'):
     319                    additional_ldflags = '%s %s' % (additional_ldflags, arg)
     320            ldflags = ' "-L%s" %s ' % (self.library_path, additional_ldflags) + ldflags
    317321            current_ld_library_path = env.get('LD_LIBRARY_PATH')
    318322            if current_ld_library_path:
Note: See TracChangeset for help on using the changeset viewer.