diff options
author | xhe <xw897002528@gmail.com> | 2017-07-29 20:48:20 +0800 |
---|---|---|
committer | xhe <xw897002528@gmail.com> | 2017-07-29 20:48:20 +0800 |
commit | f8e1033ef60d7c79c0771611bb8c87623a36ed75 (patch) | |
tree | e414068e6ab0da7448eb7ddd2e352e5134dbca70 /libintl | |
parent | d7800312c4d4624b7c7fa9bc0496585967db5134 (diff) | |
download | gettext-tiny-f8e1033ef60d7c79c0771611bb8c87623a36ed75.tar.gz |
libintl: make it optional and configurable
As rofl0r suggested, libintl.a now comes in two flavours, no-op or musl,
or we could just disable it.
no-op: gettext functions just return the input string as translation and
symbols help to get past configure scripts
musl: symbols as in no-op, with libintl built-in in to recent musl
version
Use LIBINTL=FLAVOR, FLAVOR can be NOOP(no-op), MUSL, NONE(disable)
Diffstat (limited to 'libintl')
-rw-r--r-- | libintl/libintl-musl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libintl/libintl-musl.c b/libintl/libintl-musl.c new file mode 100644 index 0000000..eb00506 --- /dev/null +++ b/libintl/libintl-musl.c @@ -0,0 +1,5 @@ +#include <stdio.h> + +/* trick configure tests checking for gnu libintl, as in the copy included in gdb */ +const char *_nl_expand_alias () { return NULL; } +int _nl_msg_cat_cntr = 0; |