Created
January 18, 2017 12:39
-
-
Save anonymous/9f35e705bd636693f4758e36bd975b2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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