[haiku-3rdparty-dev] Makefile engine for drivers in x86_64

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Mon, 14 Oct 2019 23:55:40 +0200

Hi there,

I'm trying to build a 64-bit version of a driver that uses the standard makefile-engine. However, linking is failing with this error:

relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC

Does anybody have an idea on how to fix this?
I've already added -mcmodel=kernel/medium and a few other options I found in our ArchitectureRules (-mno-red-zone, -fno-omit-frame-pointer, -z max-page-size=0x1000), but it didn't change anything.

Bye,
   Axel.

Other related posts: