diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh index 1d3014c..64d8dc1 100644 --- a/project/config/cfgdefs.sh +++ b/project/config/cfgdefs.sh @@ -114,6 +114,14 @@ cfgdefs_perform_common_tests() cfgtest_cflags_append '-DHAVE_GETRANDOM_SYSCALL' fi + # libintl + cfgtest_newline + cfgtest_comment 'libintl' + + if cfgtest_library_presence -lintl; then + cfgtest_ldflags_append '-Wl,--as-needed -lintl -Wl,--no-as-needed' + fi + # ncurses cfgtest_newline cfgtest_comment 'ncurses/ncursesw'