mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-12 23:03:29 +08:00
bdebcd3902
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>
22 lines
724 B
Diff
22 lines
724 B
Diff
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
|
|
|