https://sourceware.org/bugzilla/show_bug.cgi?id=31908

--- Comment #1 from huyubiao <h13958451065 at 163 dot com> ---
(In reply to huyubiao from comment #0)
> When I compile binutils under i686, my configure is as follows:
> ```
> ../configure --target=i686-xxx-linux --quiet --build=i686-xxx-linux
> --host=i686-xxx-linux --enable-ld --enable-plugins --enable-64-bit-bfd
> --with-bugurl=https:xxx
> --enable-jansson=yes --enable-gprofng=no --with-system-zlib
> --enable-compressed-debug-sections=none --enable-generate-build-notes=no
> --enable-relro=yes --enable-deterministic-archives=no
> --enable-warn-execstack=yes --enable-default-execstack=no
> --enable-warn-rwx-segments=yes --enable-lto --enable-threads=yes
> --with-sysroot=/ --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
> --enable-gold=default --enable-shared --enable-targets=x86_64-pep
> ```
> 
> But unfortunately it fails when compiling ld-new:
> ```
> make[4]: *** No rule to make target '-L/usr/lib', needed by 'ld-new'.  Stop.
> make[4]: *** Waiting for unfinished jobs....
> ...
> make[3]: *** [Makefile:1881: all-recursive] Error 1
> make[2]: *** [Makefile:1077: all] Error 2
> make[1]: *** [Makefile:8498: all-ld] Error 2
> make[1]: *** Waiting for unfinished jobs....
> ```
> 
> I found the reason for the failure is
> https://sourceware.org/git/?p=binutils-gdb.git;a=commit;f=ld/Makefile.in;
> h=9e2bb0cb5e74aed4158f08495534922d7108f928 .
> It adds $(JANSSON_LIBS) to ld_new_DEPENDENCIES in the ld/Makefile.in and
> ld/Makefile.am, and when I compiled the JANSSON_LIBS = -L/usr/lib -ljansson
> 
> I think $(JANSSON_LIBS) should be removed from ld_new_DEPENDENCIES

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to