ARROW-12876: [R] Fix build flags on Raspberry Pi
ARROW-12876: [R] Fix build flags on Raspberry Pi

Checks if installing on Raspberry PI OS, and if so, adds an additional build flag so that the compiler can link to one of the necessary libraries.

Closes #10404 from thisisnic/ARROW-12876_raspberry_pi

Lead-authored-by: Nic Crane <b130ca97a5c118d9797a8d384d7c894a28655aef@gmail.com>
Co-authored-by: Nic <b130ca97a5c118d9797a8d384d7c894a28655aef@gmail.com>
Signed-off-by: Neal Richardson <beb59f0141269d2d04e73d0dcc1967b64ba87e13@gmail.com>

laurentgo/arrow,laurentgo/arrow,icexelloss/arrow,laurentgo/arrow,cpcloud/arrow,cpcloud/arrow,apache/arrow,laurentgo/arrow,icexelloss/arrow,kou/arrow,wesm/arrow,icexelloss/arrow,wesm/arrow,icexelloss/arrow,cpcloud/arrow,kou/arrow,wesm/arrow,cpcloud/arrow,wesm/arrow,apache/arrow,apache/arrow,laurentgo/arrow,kou/arrow,laurentgo/arrow,wesm/arrow,icexelloss/arrow,apache/arrow,kou/arrow,kou/arrow,icexelloss/arrow,laurentgo/arrow,cpcloud/arrow,kou/arrow,kou/arrow,wesm/arrow,wesm/arrow,kou/arrow,kou/arrow,cpcloud/arrow,icexelloss/arrow,laurentgo/arrow,kou/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,apache/arrow,cpcloud/arrow,apache/arrow,wesm/arrow,apache/arrow,apache/arrow,apache/arrow,wesm/arrow,wesm/arrow,laurentgo/arrow,laurentgo/arrow,kou/arrow,icexelloss/arrow,wesm/arrow,kou/arrow,kou/arrow,apache/arrow,wesm/arrow,wesm/arrow,kou/arrow,wesm/arrow,laurentgo/arrow,icexelloss/arrow,laurentgo/arrow,apache/arrow,icexelloss/arrow,cpcloud/arrow,cpcloud/arrow,laurentgo/arrow,cpcloud/arrow,apache/arrow,cpcloud/arrow,apache/arrow,cpcloud/arrow,cpcloud/arrow,apache/arrow,laurentgo/arrow,cpcloud/arrow,icexelloss/arrow,laurentgo/arrow