summaryrefslogtreecommitdiffstats
path: root/package/lua-periphery/0001-fix-build-flags.patch
diff options
context:
space:
mode:
authorVanya Sergeev <vsergeev@gmail.com>2015-05-27 16:26:11 -0700
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-08 15:17:18 +0200
commitbdebcd39025bd6413d920b4993f7f70a94934387 (patch)
treef97749a4da4572f69a5d57f3abc643220982f741 /package/lua-periphery/0001-fix-build-flags.patch
parentaee57627b09d0955270a562b8adaa0ff88ef523b (diff)
downloadbuildroot-bdebcd39025bd6413d920b4993f7f70a94934387.tar.gz
buildroot-bdebcd39025bd6413d920b4993f7f70a94934387.zip
lua-periphery: bump version to 1.0.5, remove dependency on c-periphery
The new version of the lua-periphery LuaRocks package handles fetching the c-periphery dependency, so that it no longer needs to be cloned during the lua-periphery build process. Consequently, this removes the need for selecting c-periphery as a package dependency in buildroot and the need for the patches that modify lua-periphery to be built against an external c-periphery. [Thomas: - remove dependency from .mk file, as noticed by Baruch - add patch to fix uClibc build] Signed-off-by: Vanya Sergeev <vsergeev@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lua-periphery/0001-fix-build-flags.patch')
-rw-r--r--package/lua-periphery/0001-fix-build-flags.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/lua-periphery/0001-fix-build-flags.patch b/package/lua-periphery/0001-fix-build-flags.patch
new file mode 100644
index 0000000000..1ac220ca5b
--- /dev/null
+++ b/package/lua-periphery/0001-fix-build-flags.patch
@@ -0,0 +1,21 @@
+Fix build flags to build properly with uClibc
+
+Building with -std=c99 -D_DEFAULT_SOURCE hides the struct timespec and
+nanosleep() definitions from <time.h> in uClibc. Work around that by
+using -std=gnu99 instead.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/lua-periphery/Makefile
+===================================================================
+--- a/lua-periphery/Makefile
++++ b/lua-periphery/Makefile
+@@ -16,7 +16,7 @@
+
+ ###########################################################################
+
+-CFLAGS += -std=c99 -pedantic -D_DEFAULT_SOURCE
++CFLAGS += -std=gnu99 -pedantic
+ CFLAGS += -Wall -Wextra -Wno-unused-parameter $(DEBUG) -fPIC -I. $(LUA_CFLAGS)
+ LDFLAGS += -shared
+
OpenPOWER on IntegriCloud