Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | If gdb is configured with --disable-static then this is dutifully passed to |
| 2 | readline which then disables libreadline.a, which causes a problem when gdb |
| 3 | tries to link against that. |
| 4 | |
| 5 | To ensure that readline always builds static libraries, pass --enable-static to |
| 6 | the sub-configure. |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
| 10 | |
| 11 | diff --git a/Makefile.def b/Makefile.def |
| 12 | index 4394188..05c661a 100644 |
| 13 | --- a/Makefile.def |
| 14 | +++ b/Makefile.def |
| 15 | @@ -100,7 +100,8 @@ host_modules= { module= libiconv; |
| 16 | missing= install-html; |
| 17 | missing= install-info; }; |
| 18 | host_modules= { module= m4; }; |
| 19 | -host_modules= { module= readline; }; |
| 20 | +host_modules= { module= readline; |
| 21 | + extra_configure_flags='--enable-static';}; |
| 22 | host_modules= { module= sid; }; |
| 23 | host_modules= { module= sim; }; |
| 24 | host_modules= { module= texinfo; no_install= true; }; |
| 25 | diff --git a/Makefile.in b/Makefile.in |
| 26 | index 61e0ab6..837f36e 100644 |
| 27 | --- a/Makefile.in |
| 28 | +++ b/Makefile.in |
| 29 | @@ -24971,7 +24971,7 @@ configure-readline: |
| 30 | $$s/$$module_srcdir/configure \ |
| 31 | --srcdir=$${topdir}/$$module_srcdir \ |
| 32 | $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ |
| 33 | - --target=${target_alias} \ |
| 34 | + --target=${target_alias} --enable-static \ |
| 35 | || exit 1 |
| 36 | @endif readline |
| 37 | |