You are not logged in.
Pages: 1
Packages from the AUR can be built by setting the architecture in 'PKGBUILD':
arch=('i486' 'i686' 'pentium4' 'x86_64')
The 'i486', 'i686' and 'pentium4' tokens correspond to the architecture branches of Archlinux32.
Make sure the 'CARCH' variable is set correcly in '/etc/makepkg.conf' (we assume you want to build for newer versions of IA32 architecture supporting SSE2, so we choose 'pentium4'):
CARCH="pentium4"
also note that 'CHOST' has to remain untouched as:
CHOST="i686-pc-linux-gnu"
Make sure you set the compilation flags for C/C++ fitting to the architecture:
CFLAGS="-march=pentium4 -mtune=generic -O2 -pipe -fno-plt"
CXXFLAGS="-march=pentium4 -mtune=generic -O2 -pipe -fno-plt"
Offline
In my experience, those settings from makepkg.conf are all as you specify if you took a pentum4 version of pacman., with a pacman that detects your system as supporting pentium4 But yes you almost always need to include extra platforms in the arch from the PKGBUILD you downloaded from AUR, and sometimes other stuff, especially if it doesn't actually build everything from source.
Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.
Offline
I should mention that this is for building AUR packages on a 32-bit installation, for compiling from a 64-bit version you have to use devools32 and the tools like
core-staging-pentium4-build. That said, I miss links like 'core-stable-pentium4-build' to build against stable.
Offline
Pages: 1