7

I'm running a x86_64 Arch Linux, now I need to build packages for a i386 Arch Linux,

Is that possible? I already checked makepkg (8), it doesn't seem to support manually selection of package architecture.

I'm doing this for a few AUR packages, and I don't really want to, e.g add CLAGS

daisy
  • 53,527
  • 78
  • 236
  • 383
  • Might be useful: http://stackoverflow.com/questions/4131158/how-to-cross-compile-for-linux-x86-with-linux-amd64-cmake-and-g – slm Jun 27 '13 at 02:36

2 Answers2

4

This thread sounds like what you're looking for.

I'm not that familiar with ArchLinux so I don't understand the specifics but from what I gather it sounds like you can setup a 32-Bit chroot environment on your 64-Bit system, setup a 32-Bit toolchain within it, and build packages in there.

Also this link was referenced and looks to be exactly what you want.

slm
  • 363,520
  • 117
  • 767
  • 871
3

The devtools package provides a few helper scripts to build packages for a different architecture from PKGBUILD files.

Wieland
  • 6,353
  • 3
  • 28
  • 31