I started with a fresh install according to http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2.
I ran: $this->bbcode_second_pass_code('', 'pacman -Syu base-devel libbcm2835')
But when try to build Device::BCM2835 (either using cpan or by downloading, extracting and running make), I get this error:
$this->bbcode_second_pass_code('', '/usr/bin/ld: /usr/local/lib/libbcm2835.a(bcm2835.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC')
I tried setting CFLAGS=-fPIC and rebuilding both libbcm2835 and the perl module again, but that didn't change anything. Suggestions?