fileutils-exp.xml 1.0 KB

1234567891011121314151617181920212223
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para><userinput>cp lib/Makefile.in lib/Makefile.in.backup :</userinput> We
  4. run this command in order to keep a backup of the file we are about to
  5. change.</para>
  6. <para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &amp;&amp;
  7. sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
  8. &nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
  9. &nbsp;&nbsp;&nbsp;lib/Makefile.in.backup &gt; lib/Makefile.in:</userinput></screen>
  10. This is used to fix a problem with building fileutils statically on glibc 2.2.3
  11. systems. If this isn't done, then there is the possibility of all of the
  12. fileutils programs causing segmentation faults once chroot is entered
  13. in chapter 6.</para>
  14. <para><userinput>--libexecdir=$LFS/bin:</userinput> This configure option will
  15. set the program executable directory to $LFS/bin. This is normally set
  16. to /usr/libexec, but nothing is placed in it. Changing it just prevents
  17. that directory from being created.</para>
  18. </sect2>