]> granicus.if.org Git - sysstat/commit
Link with -lintl if needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 5 Apr 2020 13:39:50 +0000 (15:39 +0200)
committerFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 5 Apr 2020 13:45:05 +0000 (15:45 +0200)
commit1b4185b599730e6139aaaaaa48eb6626fb732c9d
tree42427061e6b5fb037699063afc2bf349a1f908c1
parent4d98f41451e40810df2f3ae2ead91019e218ffb0
Link with -lintl if needed

Some libc implementations like uclibc or musl provides
gettext stubs via libintl library. Without it, build will fail on:

/home/fabrice/buildroot/output/host/bin/arm-linux-gcc -o cifsiostat -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -Wall -Wstrict-prototypes -pipe -O2 cifsiostat.o librdstats_light.a libsyscom.a -s
/home/fabrice/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-musleabihf/8.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: tapestat.o: in function `usage':
tapestat.c:(.text+0x44c): undefined reference to `libintl_gettext'

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Makefile.in
configure.in