aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-04-05 15:31:53 +0930
committerAlan Modra <amodra@gmail.com>2021-04-05 15:31:53 +0930
commitc774eab1c82f49f0f719fd7e51e5988c62082118 (patch)
treee8f1d3c42cdf376a768fe11cca195261ddeb04ac /ld/ldmain.c
parent23d613801dfb97757f0e8eaf260d154f3e6750b1 (diff)
downloadbinutils-c774eab1c82f49f0f719fd7e51e5988c62082118.zip
binutils-c774eab1c82f49f0f719fd7e51e5988c62082118.tar.gz
binutils-c774eab1c82f49f0f719fd7e51e5988c62082118.tar.bz2
C99 ld configury
* configure.ac: Move initfini-array arg handling earlier. Don't check for string.h, strings.h, stdlib.h, or locale.h. Do check for inttypes.h, stdint.h, sys/types.h. Don't check for setlocale, free, getev or strstr. (AC_ISC_POSIX): Don't invoke. * sysdep.h: Include string.h and stdlib.h unconditionally. Test HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and getenv fallback declarations. * ld.h: Don't test HAVE_LOCALE_H. * ldmain.c: Don't test HAVE_SETLOCALE. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index b99d518..be33b69 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -246,12 +246,10 @@ main (int argc, char **argv)
char *emulation;
long start_time = get_run_time ();
-#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
+#ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, "");
#endif
-#if defined (HAVE_SETLOCALE)
setlocale (LC_CTYPE, "");
-#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);