Skip to content

Commit

Permalink
Fixed compilation on Pi64
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahallon authored and tpruvot committed Oct 12, 2017
1 parent 7495361 commit 29d94e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ _OR_
apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++
```

#### Note for Pi64 users:

```
./configure --disable-assembly CFLAGS="-Ofast -march=native" --with-crypto --with-curl
```

#### Notes for AIX users:
* To build a 64-bit binary, export OBJECT_MODE=64
* GNU-style long options are not supported, but are accessible via configuration file
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ case $MINGW_TARGET in
arm*-*-*)
have_arm=true
;;
aarch64*-*-*)
have_arm=true
;;
i*86-*-mingw*)
have_x86=true
have_win32=true
Expand Down
6 changes: 3 additions & 3 deletions sysinfos.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ int cpu_fanpercent()
return 0;
}

#ifndef __arm__
#if !defined(__arm__) || !defined(__aarch64__)
static inline void cpuid(int functionnumber, int output[4]) {
#if defined (_MSC_VER) || defined (__INTEL_COMPILER)
// Microsoft or Intel compiler, intrin.h included
Expand Down Expand Up @@ -245,7 +245,7 @@ void cpu_getmodelid(char *outbuf, size_t maxsz)

bool has_aes_ni()
{
#ifdef __arm__
#if defined(__arm__) || defined(__aarch64__)
return false;
#else
int cpu_info[4] = { 0 };
Expand All @@ -256,7 +256,7 @@ bool has_aes_ni()

void cpu_bestfeature(char *outbuf, size_t maxsz)
{
#ifdef __arm__
#if defined(__arm__) || defined(__aarch64__)
sprintf(outbuf, "ARM");
#else
int cpu_info[4] = { 0 };
Expand Down

0 comments on commit 29d94e8

Please sign in to comment.