| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | <sect2><title> </title><para> </para></sect2><sect2><title>Installation of Binutils</title><para>This package is known to behave badly when you have changed itsdefault optimization flags (including the -march and -mcpu options).Therefore, if you have defined any environment variables that overridedefault optimizations, such as CFLAGS and CXXFLAGS, we recommend unsettingor modifying them when building Binutils.</para><para>It is recommended by the Binutils installation documentation to buildBinutils outside of the source directory:</para><para><screen><userinput>mkdir ../binutils-buildcd ../binutils-build</userinput></screen></para><para>Now prepare Binutils for compilation:</para><para><screen><userinput>../binutils-&binutils-version;/configure \    --prefix=/usr --enable-shared</userinput></screen></para><para>Compile the package:</para><para><screen><userinput>make tooldir=/usr</userinput></screen></para><para>Normally, the <emphasis>tooldir</emphasis> (the directory where theexecutables end up) is set to $(exec_prefix)/$(target_alias), which expandsinto, for example, <filename>/usr/i686-pc-linux-gnu</filename>. Since we onlybuild for our own system, we don't need this target specific directory in<filename>/usr</filename>. That setup would be used if the system was used tocross-compile (for example compiling a package on an Intel machine thatgenerates code that can be executed on PowerPC machines).</para><para>Test the results:</para><para><screen><userinput>make check</userinput></screen></para><para>Install the package:</para><para><screen><userinput>make tooldir=/usr install</userinput></screen></para><para>And remove a library that normally is not meant to be installed on itsown:</para><para><screen><userinput>rm /usr/lib/libiberty.a</userinput></screen></para></sect2>
 |