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>
This commit is contained in:
parent
0dbe3d28f7
commit
46a700e118
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,8 @@ endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections
|
TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections
|
||||||
|
|
||||||
|
TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--disable-testio-debug \
|
--disable-testio-debug \
|
||||||
--enable-elf-shlibs \
|
--enable-elf-shlibs \
|
||||||
|
|
Loading…
Reference in a new issue