[Clfs-dev] Latest git build Pure 64 systemd bison and flex

William Harrington kb0iic at berzerkula.org
Sat Apr 5 06:35:47 PDT 2014


On Apr 5, 2014, at 1:36 AM, Martin Ward wrote:

> rebuilt the system again, still can't see how ar links to flex  
> whether dynamically or statically, nothing in the toolchain requires  
> bison or flex, built up to final system gcc with no errors

If flex is available, ar links to it (not required, but if binutils  
finds it, it'll link to it):

If the host has flex library installed, binutils in cross-tools will  
link to static or shared flex library, as well.

  readelf -d /cross-tools/i686-pc-linux-gnu/bin/ar /cross-tools/bin/ 
i686-pc-linux-gnu-ar  | grep NEEDED
  0x00000001 (NEEDED)                     Shared library: [libfl.so.2]
  0x00000001 (NEEDED)                     Shared library: [libz.so.1]
  0x00000001 (NEEDED)                     Shared library: [libc.so.6]
  0x00000001 (NEEDED)                     Shared library: [libfl.so.2]
  0x00000001 (NEEDED)                     Shared library: [libz.so.1]
  0x00000001 (NEEDED)                     Shared library: [libc.so.6]
  0x00000001 (NEEDED)                     Shared library: [libm.so.6]
  0x00000001 (NEEDED)                     Shared library: [libc.so.6]

  readelf -d /tools/bin/ar /usr/bin/ar | grep NEEDED
  0x00000001 (NEEDED)                     Shared library:  
[libbfd-2.24.so]
  0x00000001 (NEEDED)                     Shared library: [libfl.so.2]
  0x00000001 (NEEDED)                     Shared library: [libm.so.6]
  0x00000001 (NEEDED)                     Shared library: [libz.so.1]
  0x00000001 (NEEDED)                     Shared library: [libc.so.6]
  0x00000001 (NEEDED)                     Shared library:  
[libbfd-2.24.so]
  0x00000001 (NEEDED)                     Shared library: [libfl.so.2]
  0x00000001 (NEEDED)                     Shared library: [libm.so.6]
  0x00000001 (NEEDED)                     Shared library: [libz.so.1]
  0x00000001 (NEEDED)                     Shared library: [libc.so.6]

I don't know what functionality that adds for ar when creating,  
extracting, and modifying archives.

If flex library isn't there, ar won't link to it.

That is what I was getting at. You may not see it if you don't have  
flex on the host, in temp system, or final system before binutils.

As for M4, we can move m4 before flex and bison, as well, or use M4=4  
during bison and flex configure.

Sincerely,

WIlliam Harrington



More information about the Clfs-dev mailing list