From 4545928179837c75ab1357b77e5723a4fdb60b98 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 17 Dec 2025 20:32:10 +0100 Subject: nicer defaults and facilities for cross-compilation --- hostconfig.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 hostconfig.h (limited to 'hostconfig.h') diff --git a/hostconfig.h b/hostconfig.h new file mode 100644 index 0000000..b333ad2 --- /dev/null +++ b/hostconfig.h @@ -0,0 +1,27 @@ +#ifndef HOST_CONFIG_H +#define HOST_CONFIG_H + +#if defined __x86_64 || defined __x86_64__ +#define HOST_ARCH ISx86_64 +#else +#define HOST_ARCH ISxxx +#endif + +#if defined __linux__ +#define HOST_OS OSlinux +#else +#define HOST_OS OSunknown +#endif + +#if defined __linux__ +#define HOST_ABI ABIgnu +#else +#define HOST_ABI ABInone +#endif + +#ifndef HOST_INCLUDE_DIRS +#define HOST_INCLUDE_DIRS "/usr/include", "/usr/local/include" +#endif + +#endif + -- cgit v1.2.3