]>
Commit | Line | Data |
---|---|---|
a5f47242 JB |
1 | --- binutils-2.26/bfd/Makefile.am.orig 2016-01-26 21:10:01.893801762 +0100 |
2 | +++ binutils-2.26/bfd/Makefile.am 2016-01-26 21:10:42.507133384 +0100 | |
3 | @@ -52,7 +52,7 @@ | |
4 | WARN_CFLAGS = @WARN_CFLAGS@ | |
5 | NO_WERROR = @NO_WERROR@ | |
6 | AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) | |
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 |