]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Fix ELF detection on Intel compilers
authorSeth R Johnson <johnsonsr@ornl.gov>
Thu, 14 Nov 2019 12:26:41 +0000 (07:26 -0500)
committerGuillem Jover <guillem@hadrons.org>
Fri, 1 Jan 2021 17:12:12 +0000 (18:12 +0100)
The Intel compiler does not define __amd64__ on x86_64 platforms;
instead, like other compilers, it defines __x86_64__ .

Closes: !8
Signed-off-by: Guillem Jover <guillem@hadrons.org>
src/local-elf.h

index f784b122390dbae3b8907934adfb0980010bc695..98a296293f02dbab8baf75b7b2016f949379b7d2 100644 (file)
@@ -45,7 +45,7 @@
 #define ELF_TARG_CLASS ELFCLASS64
 #define ELF_TARG_DATA  ELFDATA2LSB
 
-#elif defined(__amd64__)
+#elif defined(__amd64__) || defined(__x86_64__)
 
 #define ELF_TARG_MACH  EM_X86_64
 #if defined(__ILP32__)