Skip to content

Commit

Permalink
reinstate linux_{armhf,armel} naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ochafik committed Nov 8, 2022
1 parent 2d54678 commit c7fd03c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 5 deletions.
7 changes: 4 additions & 3 deletions BuildNative
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function get_arch() {
;;
arm*)
if [[ -d /lib/arm-linux-gnueabihf ]] ; then
# echo "armhf"
echo "armhf"
# echo "arm32v7"
echo "arm"
# echo "arm"
elif [[ -d /lib/arm-linux-gnueabi ]] ; then
echo "armel"
# echo "arm32v5"
Expand Down Expand Up @@ -106,7 +106,8 @@ function build_libraries() {
if [[ "${DEBUG:-0}" == "1" ]]; then
CMAKE_FLAGS+=( -DCMAKE_BUILD_TYPE=Debug )
else
CMAKE_FLAGS+=( -DCMAKE_BUILD_TYPE=Release )
CMAKE_FLAGS+=( -DCMAKE_BUILD_TYPE=RelWithDebInfo )
# CMAKE_FLAGS+=( -DCMAKE_BUILD_TYPE=Release )
fi

case "$OS" in
Expand Down
9 changes: 7 additions & 2 deletions src/main/java/org/bridj/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,13 @@ static synchronized List<String> getEmbeddedLibraryPaths(String name) {
if (os != null) {
List<String> archs = new ArrayList<String>();
if (isArm()) {
// Note: to discriminate between hard-float (armhf) and soft-float (armel), we used to test new File("/lib/arm-linux-gnueabihf").isDirectory().
archs.add(is64Bits() ? "arm64" : "arm");
// Note: to discriminate between hard-float (armhf) and soft-float (armel), we used to test .
archs.add(
is64Bits()
? "arm64" :
new File("/lib/arm-linux-gnueabihf").isDirectory()
? "armhf" :
"armel");
} else if (isSparc()) {
archs.add(is64Bits() ? "sparc64" : "sparc");
} else {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit c7fd03c

Please sign in to comment.