tini: fix compilation with glibc
authorRosen Penev <rosenp@gmail.com>
Fri, 8 Jan 2021 08:51:14 +0000 (00:51 -0800)
committerRosen Penev <rosenp@gmail.com>
Fri, 8 Jan 2021 08:51:48 +0000 (00:51 -0800)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/tini/Makefile

index 8ba0d3aa185c8ac5f0a2629dd69ee615325e2477..c7ad5bc2a5485db5e32134c253f5e4f0035788ae 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tini
 PKG_VERSION:=0.19.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
@@ -32,6 +32,7 @@ A tiny but valid init process for containers.
 endef
 
 CMAKE_OPTIONS += -DTINI_VERSION_GIT='$(TINI_COMMIT)'
+TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lc -lgcc_eh)
 
 define Package/tini/install
        $(INSTALL_DIR) $(1)/usr/bin