Shared library for linux (x11)

jarro_2783 wrote on Sunday, July 09, 2006:

would it be possible, or does anyone know how, to fix up the assembly code in x11_time.c that breaks position independent code? I tried compiling with -fPIC but it said:
error 147: position independent code clobbers ‘%ebx’ in ‘asm’.
It didn’t look that important so I just commented it out and it seems to work, but that could be wrong, and it would be good if there was a way to do it without commenting out chunks of the program.

elmindreda wrote on Sunday, July 09, 2006:

I had a quick go at a patch. Let me know if it works for you.

http://www.elmindreda.org/glfw/glfw-2.5_noclobber.patch

jarro_2783 wrote on Monday, July 10, 2006:

it compiled, glfw still works, I have no way of knowing if that segment of code actually works, but my program still runs so that’s all that matters.