Change Details
alpy/Makefile |
58 | 58 | # $(PKG_BUILD_DIR)/setup.py build |
59 | 59 | # endef |
60 | 60 | |
61 | | TARGET_LDFLAGS += -lalleg -lm -lpthread |
| 61 | TARGET_LDFLAGS += -lm -lpthread -ldl -lrt -lalleg |
62 | 62 | |
63 | 63 | define Build/Install |
64 | 64 | $(call Build/Compile/PyMod,, \ |
... | ... | |
80 | 80 | |
81 | 81 | # The following comments configure the Emacs editor. Just ignore them. |
82 | 82 | # Local Variables: |
83 | | # compile-command: "make -C ~/h/src/qi/openwrt-xburst package/alpy/compile -j2 V=99" |
| 83 | # compile-command: "cd ~/src/nanonote/Alpy-0.1.5 && ~/bin/quilt-export target && make -C ~/h/src/qi/openwrt-xburst package/alpy/compile -j2 V=99" |
84 | 84 | # End: |
alpy/patches/005-dl.patch |
25 | 25 | m = __import__('_alpy') |
26 | 26 | handle.close() |
27 | 27 | return m |
| 28 | Index: Alpy-0.1.5/_alpymodule.c |
| 29 | =================================================================== |
| 30 | --- Alpy-0.1.5.orig/_alpymodule.c 2012-03-29 00:20:15.351117567 +0200 |
| 31 | @@ -29,6 +29,7 @@ |
| 32 | #include "allegro.h" |
| 33 | #include <stdlib.h> |
| 34 | #include <string.h> |
| 35 | +#include <dlfcn.h> |
| 36 | |
| 37 | static const char *_utf8 = "utf8"; |
| 38 | |
| 39 | @@ -237,6 +238,13 @@ |
| 40 | { |
| 41 | int result, alpy_system = SYSTEM_AUTODETECT; |
| 42 | |
| 43 | + /* this is an ugly hack added for OpenWRT: seems that recursive library |
| 44 | + dependencies won't get the treatment configured in alpy.py via |
| 45 | + sys.setdlopenflags(), so that aleg-fbcon.so references into liballegro |
| 46 | + are not referenced. Of course we could also go and fix liballegro to |
| 47 | + make all modules explicitely link to liballegro themselves. */ |
| 48 | + dlopen("liballeg.so", RTLD_NOW|RTLD_GLOBAL); |
| 49 | + |
| 50 | if (!alpy_allegro_installed) { |
| 51 | alpy_allegro_installed++; |
| 52 | |
Download the corresponding diff file