kitty/glfw
James McCoy 0dff0d03f9 Use -fPIC instead of -fpic
With large objects, use of -fpic will fail to link on certain
architectures due to size limitations of the global offset table (GOT).
For example, the link stage for glfw-wayland.so fails on sparc64, as
below.  Using -fPIC avoids these size limitations.

    ./glfw/osmesa_context.c:73:(.text+0xf2c): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
    /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `swapIntervalEGL':
    ./glfw/egl_context.c:238:(.text+0xf68): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
    /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `destroyContextOSMesa':
    ./glfw/osmesa_context.c:80:(.text+0x10a4): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
    /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `data_offer_action':
    ./glfw/wl_window.c:1692:(.text+0x15e4): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
    /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `data_offer_source_actions':
    ./glfw/wl_window.c:1683:(.text+0x1648): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
    /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `keyboardHandleRepeatInfo':
    ./glfw/wl_init.c:471:(.text+0x1704): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
    /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `checkScaleChange':
    ./glfw/wl_window.c:55:(.text+0x1768): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
    /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `primary_selection_copy_callback_done':
    ./glfw/wl_window.c:1833:(.text+0x18bc): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
    /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `clipboard_copy_callback_done':
    ./glfw/wl_window.c:1825:(.text+0x1910): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
    /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `primary_selection_source_canceled':
    ./glfw/wl_window.c:1582:(.text+0x1968): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
    /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `data_source_canceled':
    ./glfw/wl_window.c:1576:(.text+0x19c0): additional relocation overflows omitted from the output
    collect2: error: ld returned 1 exit status
2020-04-25 10:08:28 -04:00
..
__init__.py Add type checking for glfw module as well 2020-03-06 07:59:55 +05:30
backend_utils.c Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
backend_utils.h Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
cocoa_init.m Cocoa: Add fully dynamic loading of Vulkan loader 2020-01-17 14:18:28 +01:00
cocoa_joystick.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
cocoa_joystick.m Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
cocoa_monitor.m Cocoa: Only create per-monitor display link once 2020-01-02 18:05:38 +01:00
cocoa_platform.h Cocoa: Add fully dynamic loading of Vulkan loader 2020-01-17 14:18:28 +01:00
cocoa_window.m Actually, we should use text/plain rather than text/uri-list since we are already converting to filesystem paths 2020-03-19 13:40:02 +05:30
context.c Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
dbus_glfw.c Use datatype monotonic_t instead of double to keep track of time 2019-09-25 17:43:11 +02:00
dbus_glfw.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
egl_context.c Add curly braces 2019-12-18 18:12:48 +01:00
egl_context.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
glfw.py Use -fPIC instead of -fpic 2020-04-25 10:08:28 -04:00
glfw3.h Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
glx_context.c Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
glx_context.h Fix bool indentation 2019-08-30 15:32:20 +02:00
ibus_glfw.c Rename all uses of 'scancode' to 'native_key' where relevant 2019-10-16 02:25:20 +02:00
ibus_glfw.h Extract key event data to struct 2019-09-24 19:15:35 +02:00
init.c Remove unused code 2019-12-19 16:27:25 +05:30
input.c Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
internal.h Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
linux_joystick.c Reduce difference to GLFW upstream 2019-11-23 13:19:06 +01:00
linux_joystick.h Fix bool indentation 2019-08-30 15:32:20 +02:00
linux_notify.c Build glfw with all warnings enabled 2019-07-01 10:42:07 +05:30
linux_notify.h Set a default action name on the dbus notification 2019-02-03 13:53:26 +05:30
main_loop.h Use datatype monotonic_t instead of double to keep track of time 2019-09-25 17:43:11 +02:00
mappings.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
memfd.h Convert some tabs to spaces 2019-02-02 22:08:32 +01:00
monitor.c Fix comparison of video modes of equal area 2019-09-08 09:12:39 +05:30
monotonic.c Fix #2187 2019-12-08 22:37:47 +05:30
nsgl_context.h Reduce difference to GLFW upstream 2019-11-23 13:19:06 +01:00
nsgl_context.m NSGL: Fix disabling of Retina resolution 2019-12-15 20:54:21 +05:30
null_init.c Remove unused code 2019-12-19 16:27:25 +05:30
null_joystick.c Mark unused parameters in glfw/null_*.c 2019-09-19 20:21:09 +02:00
null_joystick.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
null_monitor.c Mark unused parameters in glfw/null_*.c 2019-09-19 20:21:09 +02:00
null_platform.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
null_window.c Implement resize by increment 2019-12-09 08:33:32 +01:00
osmesa_context.c Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
osmesa_context.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
posix_thread.c Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
posix_thread.h Fix bool indentation 2019-08-30 15:32:20 +02:00
source-info.json Remove unused code 2019-12-19 16:27:25 +05:30
vulkan.c Cocoa: Add fully dynamic loading of Vulkan loader 2020-01-17 14:18:28 +01:00
window.c Implement resize by increment 2019-12-09 08:33:32 +01:00
wl_init.c Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
wl_monitor.c Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
wl_platform.h Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
wl_window.c Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
x11_init.c Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
x11_monitor.c X11: Assume 96 DPI if RandR monitor size is zero 2019-11-22 02:07:34 +01:00
x11_platform.h Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
x11_window.c Fix #2581 2020-04-24 19:24:11 +05:30
xkb_glfw.c Ignore keys for switching keyboard layout 2020-04-10 17:21:53 +02:00
xkb_glfw.h Rename all uses of 'scancode' to 'native_key' where relevant 2019-10-16 02:25:20 +02:00