]> git.pld-linux.org Git - packages/binutils.git/blob - binutils-libdir.patch
- added libdir patch (suffix-aware bfd-plugins dir; at the cost of relative plugins...
[packages/binutils.git] / binutils-libdir.patch
1 --- binutils-2.25.51.0.1/bfd/Makefile.am.orig   2015-03-15 11:04:52.000000000 +0100
2 +++ binutils-2.25.51.0.1/bfd/Makefile.am        2015-03-17 20:08:55.482838510 +0100
3 @@ -46,7 +46,7 @@
4  WARN_CFLAGS = @WARN_CFLAGS@
5  NO_WERROR = @NO_WERROR@
6  AM_CFLAGS = $(WARN_CFLAGS)
7 -AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
8 +AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"'
9  if PLUGINS
10  bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
11  LIBDL = @lt_cv_dlopen_libs@
12 --- binutils-2.25.51.0.1/bfd/plugin.c.orig      2015-03-15 11:04:52.000000000 +0100
13 +++ binutils-2.25.51.0.1/bfd/plugin.c   2015-03-17 21:03:28.116034504 +0100
14 @@ -404,8 +404,7 @@
15  static int
16  load_plugin (bfd *abfd)
17  {
18 -  char *plugin_dir;
19 -  char *p;
20 +  const char *p = LIBDIR "/bfd-plugins";
21    DIR *d;
22    struct dirent *ent;
23    int found = 0;
24 @@ -416,13 +415,6 @@
25    if (plugin_program_name == NULL)
26      return 0;
27  
28 -  plugin_dir = concat (BINDIR, "/../lib/bfd-plugins", NULL);
29 -  p = make_relative_prefix (plugin_program_name,
30 -                           BINDIR,
31 -                           plugin_dir);
32 -  free (plugin_dir);
33 -  plugin_dir = NULL;
34 -
35    d = opendir (p);
36    if (!d)
37      goto out;
38 @@ -441,7 +433,6 @@
39      }
40  
41   out:
42 -  free (p);
43    if (d)
44      closedir (d);
45  
This page took 0.037158 seconds and 4 git commands to generate.