Skip to content

Instantly share code, notes, and snippets.

@TheBuzzSaw
Created November 4, 2021 04:38
Show Gist options
  • Save TheBuzzSaw/c0ccd1929e7c5a0c5ba85a491ec12976 to your computer and use it in GitHub Desktop.
Save TheBuzzSaw/c0ccd1929e7c5a0c5ba85a491ec12976 to your computer and use it in GitHub Desktop.
Gemini Rue fix for Linux
#!/bin/sh
set -x
if [ 64 = "`getconf LONG_BIT`" ]
then
libdir='lib64'
else
libdir='lib'
fi
sed 's/liballeg\.so\.4\.4/liballeg.so.org/' <"$libdir/liballeg.so.4.4" >"$libdir/liballeg.so.org" &&
gcc `allegro-config --cflags` -shared -fPIC -x c - -o "$libdir/liballeg.so.4.4" -Wl,"$libdir/liballeg.so.org" <<\EOF
#include <allegro.h>
#include <xalleg.h>
static void _init_input_handler(void) __attribute__((constructor));
static void _input_handler(void)
{
if (0 == _xwin.display)
return;
while (XQLength(_xwin.display) > 0)
_xwin_private_handle_input();
}
void _init_input_handler(void)
{
_xwin_input_handler = _input_handler;
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment