[FS#381] Error: undefined reference to `clock_gettime’ during build
LEDE Bugs
lede-bugs at lists.infradead.org
Tue Jan 10 16:40:51 PST 2017
The following task has a new comment added:
FS#381 - Error: undefined reference to `clock_gettime’ during build
User who did this - Jo-Philipp Wich (jow-)
----------
Please try the following change in tools/mkimage/Makefile and repeat the build using `make tools/mkimage/{clean,compile} V=sc`:
diff --git a/tools/mkimage/Makefile b/tools/mkimage/Makefile
index 4aa822d..bfe6099 100644
--- a/tools/mkimage/Makefile
+++ b/tools/mkimage/Makefile
@@ -31,8 +31,8 @@ define Host/Prepare
endef
define Host/Compile
- $(MAKE) -C $(HOST_BUILD_DIR) defconfig HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS) $$$$(pkg-config --static --libs libcrypto)"
- $(MAKE) -C $(HOST_BUILD_DIR) tools-only HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS) $$$$(pkg-config --static --libs libcrypto)"
+ $(MAKE) -C $(HOST_BUILD_DIR) defconfig HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS)" HOST_LOADLIBES="$$$$(pkg-config --static --libs libcrypto)"
+ $(MAKE) -C $(HOST_BUILD_DIR) tools-only HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS)" HOST_LOADLIBES="$$$$(pkg-config --static --libs libcrypto)"
endef
define Host/Install
----------
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=381#comment1193
More information about the lede-bugs
mailing list