Skip to content

Commit c7fd03c

Browse files
committed
reinstate linux_{armhf,armel} naming
1 parent 2d54678 commit c7fd03c

File tree

8 files changed

+11
-5
lines changed

8 files changed

+11
-5
lines changed

BuildNative

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ function get_arch() {
4545
;;
4646
arm*)
4747
if [[ -d /lib/arm-linux-gnueabihf ]] ; then
48-
# echo "armhf"
48+
echo "armhf"
4949
# echo "arm32v7"
50-
echo "arm"
50+
# echo "arm"
5151
elif [[ -d /lib/arm-linux-gnueabi ]] ; then
5252
echo "armel"
5353
# echo "arm32v5"
@@ -106,7 +106,8 @@ function build_libraries() {
106106
if [[ "${DEBUG:-0}" == "1" ]]; then
107107
CMAKE_FLAGS+=( -DCMAKE_BUILD_TYPE=Debug )
108108
else
109-
CMAKE_FLAGS+=( -DCMAKE_BUILD_TYPE=Release )
109+
CMAKE_FLAGS+=( -DCMAKE_BUILD_TYPE=RelWithDebInfo )
110+
# CMAKE_FLAGS+=( -DCMAKE_BUILD_TYPE=Release )
110111
fi
111112

112113
case "$OS" in

src/main/java/org/bridj/Platform.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,13 @@ static synchronized List<String> getEmbeddedLibraryPaths(String name) {
589589
if (os != null) {
590590
List<String> archs = new ArrayList<String>();
591591
if (isArm()) {
592-
// Note: to discriminate between hard-float (armhf) and soft-float (armel), we used to test new File("/lib/arm-linux-gnueabihf").isDirectory().
593-
archs.add(is64Bits() ? "arm64" : "arm");
592+
// Note: to discriminate between hard-float (armhf) and soft-float (armel), we used to test .
593+
archs.add(
594+
is64Bits()
595+
? "arm64" :
596+
new File("/lib/arm-linux-gnueabihf").isDirectory()
597+
? "armhf" :
598+
"armel");
594599
} else if (isSparc()) {
595600
archs.add(is64Bits() ? "sparc64" : "sparc");
596601
} else {
490 KB
Binary file not shown.

src/main/resources/org/bridj/lib/linux_arm/libbridj.so renamed to src/main/resources/org/bridj/lib/linux_armhf/libbridj.so

File renamed without changes.
21.1 KB
Binary file not shown.
422 KB
Binary file not shown.

src/test/resources/org/bridj/lib/linux_arm/libdependsOnTest.so renamed to src/test/resources/org/bridj/lib/linux_armhf/libdependsOnTest.so

File renamed without changes.

src/test/resources/org/bridj/lib/linux_arm/libtest.so renamed to src/test/resources/org/bridj/lib/linux_armhf/libtest.so

File renamed without changes.

0 commit comments

Comments
 (0)