<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=PaRisc_CrossCompile</id>
	<title>PaRisc CrossCompile - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=PaRisc_CrossCompile"/>
	<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=PaRisc_CrossCompile&amp;action=history"/>
	<updated>2026-04-08T17:42:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=PaRisc_CrossCompile&amp;diff=154&amp;oldid=prev</id>
		<title>Erik: Copy from old, had no category, placed in Tutorials</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=PaRisc_CrossCompile&amp;diff=154&amp;oldid=prev"/>
		<updated>2009-06-06T21:19:30Z</updated>

		<summary type="html">&lt;p&gt;Copy from old, had no category, placed in Tutorials&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
Cross compiler setup instructions&lt;br /&gt;
=================================&lt;br /&gt;
&lt;br /&gt;
Work in progress, a script to build the hppa-linux compiler toolchain on Slackware&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
export TARGET=hppa-linux&lt;br /&gt;
export MACH=i686-linux&lt;br /&gt;
export DEST=/usr/local&lt;br /&gt;
export SRC=~/pabuild&lt;br /&gt;
&lt;br /&gt;
mkdir -p $DEST $SRC&lt;br /&gt;
mkdir -p $DEST/include&lt;br /&gt;
&lt;br /&gt;
cd $SRC&lt;br /&gt;
mkdir binutils-build&lt;br /&gt;
mkdir gcc-build&lt;br /&gt;
mkdir glibc-build&lt;br /&gt;
mkdir linux&lt;br /&gt;
&lt;br /&gt;
# Extract binutils&lt;br /&gt;
tar -zxvf binutils-&amp;lt;version&amp;gt;.tar.gz&lt;br /&gt;
cd binutils-build&lt;br /&gt;
&lt;br /&gt;
../binutils/configure --target=$TARGET --prefix=$DEST/hppa-linux --host=$MACH --disable-nls&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
# Extract gcc&lt;br /&gt;
tar -zxvf gcc-3.4.6.tar.gz&lt;br /&gt;
cd gcc-build&lt;br /&gt;
../gcc/configure --target=$TARGET --prefix=$DEST --host=$MACH --disable-shared --disable-nls&lt;br /&gt;
&lt;br /&gt;
make LANGUAGES=c&lt;br /&gt;
&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Extract the kernel source from CVS&lt;br /&gt;
&lt;br /&gt;
cd linux&lt;br /&gt;
make oldconfig&lt;br /&gt;
make dep&lt;br /&gt;
&lt;br /&gt;
# Extract glibc&lt;br /&gt;
cd glibc-build&lt;br /&gt;
&lt;br /&gt;
../glibc/configure --HOST=$TARGET --BUILD=$MACH --PREFIX=$DEST/hppa-linux&lt;br /&gt;
--WITH-HEADERS=$DEST/include --disable-profile --without-cvs --enable-add-ons&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
cd $DEST/hppa-linux/include&lt;br /&gt;
ln -s ~/source/linux/include/asm .&lt;br /&gt;
ln -s ~/source/linux/include/linux .&lt;/div&gt;</summary>
		<author><name>Erik</name></author>
	</entry>
</feed>