diff --git a/src/main/java/com/kenai/jffi/Platform.java b/src/main/java/com/kenai/jffi/Platform.java index 84473695..8b298d0f 100644 --- a/src/main/java/com/kenai/jffi/Platform.java +++ b/src/main/java/com/kenai/jffi/Platform.java @@ -225,7 +225,7 @@ private static CPU determineCPU() { } else if (Util.equalsIgnoreCase("s390", archString, LOCALE) || Util.equalsIgnoreCase("s390x", archString, LOCALE)) { return CPU.S390X; - } else if (Util.equalsIgnoreCase("arm", archString, LOCALE)) { + } else if (Util.equalsIgnoreCase("arm", archString, LOCALE) || Util.equalsIgnoreCase("armv7l", archString, LOCALE)) { return CPU.ARM; } else if (Util.equalsIgnoreCase("aarch64", archString, LOCALE)) { diff --git a/src/main/java/com/kenai/jffi/internal/StubLoader.java b/src/main/java/com/kenai/jffi/internal/StubLoader.java index 71dbdfc3..26e11da5 100644 --- a/src/main/java/com/kenai/jffi/internal/StubLoader.java +++ b/src/main/java/com/kenai/jffi/internal/StubLoader.java @@ -180,7 +180,7 @@ private static CPU determineCPU() { return CPU.PPC64LE; } else if (equalsIgnoreCase("s390", archString, LOCALE) || equalsIgnoreCase("s390x", archString, LOCALE)) { return CPU.S390X; - } else if (Util.equalsIgnoreCase("arm", archString, LOCALE)) { + } else if (Util.equalsIgnoreCase("arm", archString, LOCALE) || Util.equalsIgnoreCase("armv7l", archString, LOCALE)) { return CPU.ARM; } else if (Util.equalsIgnoreCase("aarch64", archString, LOCALE)) { return CPU.AARCH64;