aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/e2fsprogs
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-10-08 16:57:01 +0200
committerHans Dedecker <dedeckeh@gmail.com>2018-10-08 17:24:23 +0200
commit16c712501cdcb10f333f4abc027a0dcdb8f8101b (patch)
treefda656a6c6b2d5d048c52bafc0261b7bbf58c02f /package/utils/e2fsprogs
parentb134b3299c99f468a1c0055580dad1aa71b6b63c (diff)
downloadupstream-16c712501cdcb10f333f4abc027a0dcdb8f8101b.tar.gz
upstream-16c712501cdcb10f333f4abc027a0dcdb8f8101b.tar.bz2
upstream-16c712501cdcb10f333f4abc027a0dcdb8f8101b.zip
e2fsprogs: fix glibc compile issue (FS#1749,FS#1796)
Fixes the following build error: .../toolchain-i386_pentium4_gcc-7.3.0_glibc/lib/gcc/i486-openwrt-linux-gnu/7.3.0/../../../../i486-openwrt-linux-gnu/bin/ld: ../lib/libcom_err.so: undefined reference to `sem_post’ .../toolchain-i386_pentium4_gcc-7.3.0_glibc/lib/gcc/i486-openwrt-linux-gnu/7.3.0/../../../../i486-openwrt-linux-gnu/bin/ld: ../lib/libcom_err.so: undefined reference to `sem_wait' .../toolchain-i386_pentium4_gcc-7.3.0_glibc/lib/gcc/i486-openwrt-linux-gnu/7.3.0/../../../../i486-openwrt-linux-gnu/bin/ld: ../lib/libcom_err.so: undefined reference to `sem_init’ .../toolchain-i386_pentium4_gcc-7.3.0_glibc/lib/gcc/i486-openwrt-linux-gnu/7.3.0/../../../../i486-openwrt-linux-gnu/bin/ld: ../lib/libcom_err.so: undefined reference to `sem_destroy’ Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package/utils/e2fsprogs')
-rw-r--r--package/utils/e2fsprogs/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/utils/e2fsprogs/Makefile b/package/utils/e2fsprogs/Makefile
index 13a408718d..48f812a30c 100644
--- a/package/utils/e2fsprogs/Makefile
+++ b/package/utils/e2fsprogs/Makefile
@@ -132,6 +132,8 @@ $(call Package/e2fsprogs)
endef
TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections -flto
+
+TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
TARGET_LDFLAGS += -flto
CONFIGURE_ARGS += \