Till now it was only presented in the version output but could not be
consulted outside of haproxy.c, let's export it as a variable, and set
it to an empty string if not defined.
#include <haproxy/mworker-t.h>
#include <haproxy/vars-t.h>
+extern const char *build_features;
extern struct global global;
extern int pid; /* current process id */
extern int relative_pid; /* process id starting at 1 */
*/
empty_t __read_mostly_align HA_SECTION("read_mostly") ALIGNED(64);
+#ifdef BUILD_FEATURES
+const char *build_features = BUILD_FEATURES;
+#else
+const char *build_features = "";
+#endif
+
/* list of config files */
static struct list cfg_cfgfiles = LIST_HEAD_INIT(cfg_cfgfiles);
int pid; /* current process id */