aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils
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 21:25:09 +0200
commit46a700e118060c1666a9a73cc6d6ee3062b12618 (patch)
treec9904dd112d7a16bba57d9cd36360f1fcf3678c1 /package/utils
parent0dbe3d28f7e2716e568ef36c8fa4d3c0964239f0 (diff)
downloadupstream-46a700e118060c1666a9a73cc6d6ee3062b12618.tar.gz
upstream-46a700e118060c1666a9a73cc6d6ee3062b12618.tar.bz2
upstream-46a700e118060c1666a9a73cc6d6ee3062b12618.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')
-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 3411bea740..0ef0dbca34 100644
--- a/package/utils/e2fsprogs/Makefile
+++ b/package/utils/e2fsprogs/Makefile
@@ -133,6 +133,8 @@ endef
TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections
+TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
+
CONFIGURE_ARGS += \
--disable-testio-debug \
--enable-elf-shlibs \