Define TLS in bfd.c if not already defined

If configure decides that thread-local storage isn't available, it
does not define "TLS".  However, this is used unconditionally in a
definition.  So, define it if it isn't already defined.
This commit is contained in:
Tom Tromey
2025-05-30 07:04:03 -06:00
parent 8077496876
commit 408984ea7b

View File

@@ -719,6 +719,12 @@ EXTERNAL
#define EXIT_FAILURE 1
#endif
/* Configure will leave this undefined, but it's unconditionally used
in a definition later. */
#ifndef TLS
#define TLS
#endif
/* provide storage for subsystem, stack and heap data which may have been
passed in on the command line. Ld puts this data into a bfd_link_info