formatting large disks – used by both OSX and RPi

I need to install a large hard drive (4 TB) to use it both on OSX and in a RaspberryPi.

Until now, all my attempts failed. At the moment, I formatted it so that it uses GPT, type "linux file system", and all 4 TB are recognized – Linux recognizes them but not the Mac

Is there a recommended way to solve this?