David Jensen wrote:


The whole thing seems too complex, this seems all that is required for static.

   sed -i 's:^LN = ln:& -sf:' unix/Makefile &&
   make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK \
       linux -funix/Makefile
   make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK install

The sed changes the hardlink zipinfo->unzip to symbolic.
The first make creates a Makefile->unix/Makefile symlink, so it is not needed
for the install.

It didn't use zlib that way.
  sed -i 's:^LN = ln:& -sf:' unix/Makefile &&
  make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK \
      generic_zlib -funix/Makefile
  make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK install

Changed the target to generic_zlib.
No patches needed!

--
David Jensen


--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to