hugor: convert live ebuild to also handle releases, copy to 0.9, remove 0.8
[gentoo-interactive-fiction.git] / dev-games / glkloader / files / glkloader-0.3.2-no-rdynamic.patch
blobf6aa5e210726b01f9922e421e0313eff78925d2e
1 Source: dleverton
2 Upstream: submitted, but this possibly reduces portability, so may not
3 be accepted
4 Reason: avoid requiring Glk applications to be built with the -rdynamic flag
6 --- glkloader-0.3.2/glkloader.c~ 2001-06-23 21:54:17.000000000 +0100
7 +++ glkloader-0.3.2/glkloader.c 2008-01-29 20:53:25.000000000 +0000
8 @@ -30,6 +30,7 @@
9 #include <stdlib.h>
10 #include <stdio.h>
11 #include <glk.h>
12 +#include <glkstart.h>
14 #include "defines.h"
15 #include "xpconfig/xpconfig.h"
16 @@ -240,3 +241,13 @@
18 return retVal;
21 +void (*glkloader__glk_main)(void) = &glk_main;
23 +int glkunix_startup_code(glkunix_startup_t *) __attribute__((weak));
24 +int glkunix_startup_code(glkunix_startup_t *x)
26 + return 1;
29 +glkunix_argumentlist_t glkunix_arguments[] __attribute__((weak)) = { { NULL, 0, NULL } };