diff options
author | Petr Štetiar <ynezz@true.cz> | 2010-10-15 23:09:20 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-10-20 18:30:24 -0700 |
commit | fff62b3b96794ecd2a912eff451949321c382798 (patch) | |
tree | 12579169eaef20c3e26f2ea6e23fef418a17246c /recipes/lua/lua5.1 | |
parent | 1e171fd3d7579fd08aa6db26b98eee5938929ba6 (diff) | |
download | openembedded-fff62b3b96794ecd2a912eff451949321c382798.tar.gz |
lua5.1: link to libpthread when using uclibc
When the Lua modules are linked with pthreads, loading them crashes Lua. It's
some bug in pthread_create() in uclibc. Anyway, linking Lua against pthread
fixes this issue.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/lua/lua5.1')
-rw-r--r-- | recipes/lua/lua5.1/uclibc-pthread.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/lua/lua5.1/uclibc-pthread.patch b/recipes/lua/lua5.1/uclibc-pthread.patch new file mode 100644 index 0000000000..0555e81b19 --- /dev/null +++ b/recipes/lua/lua5.1/uclibc-pthread.patch @@ -0,0 +1,13 @@ +Index: lua-5.1.4/src/Makefile +=================================================================== +--- lua-5.1.4.orig/src/Makefile 2010-10-16 09:51:52.000000000 +0200 ++++ lua-5.1.4/src/Makefile 2010-10-16 09:52:15.000000000 +0200 +@@ -12,7 +12,7 @@ + AR= ar rcu + RANLIB= ranlib + RM= rm -f +-LIBS= -lm $(MYLIBS) ++LIBS= -lm -lpthread $(MYLIBS) + + MYCFLAGS= + MYLDFLAGS= |