diff options
author | midipix <writeonce@midipix.org> | 2018-12-21 16:23:19 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-21 21:55:26 -0500 |
commit | 34f27e719207fdc7d6683b6358a51da8ba5c3cb8 (patch) | |
tree | d9698a025d7a0b63e69d4024f8231439ee85723b /project/config | |
parent | 83d8c47b7011cd0af418e44cd9deb1bbe28c213b (diff) | |
download | sbpython2-34f27e719207fdc7d6683b6358a51da8ba5c3cb8.tar.bz2 sbpython2-34f27e719207fdc7d6683b6358a51da8ba5c3cb8.tar.xz |
project: custom config: test for and link linintl as needed.
Diffstat (limited to 'project/config')
-rw-r--r-- | project/config/cfgdefs.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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' |