()
| 989 | } |
| 990 | |
| 991 | private static String getMultiArchPath() { |
| 992 | String cpu = Platform.ARCH; |
| 993 | String kernel = Platform.iskFreeBSD() |
| 994 | ? "-kfreebsd" |
| 995 | : (Platform.isGNU() ? "" : "-linux"); |
| 996 | String libc = "-gnu"; |
| 997 | |
| 998 | if (Platform.isIntel()) { |
| 999 | cpu = (Platform.is64Bit() ? "x86_64" : "i386"); |
| 1000 | } |
| 1001 | else if (Platform.isPPC()) { |
| 1002 | cpu = (Platform.is64Bit() ? "powerpc64" : "powerpc"); |
| 1003 | } |
| 1004 | else if (Platform.isARM()) { |
| 1005 | cpu = "arm"; |
| 1006 | libc = "-gnueabi"; |
| 1007 | } |
| 1008 | else if (Platform.ARCH.equals("mips64el")) { |
| 1009 | libc = "-gnuabi64"; |
| 1010 | } |
| 1011 | |
| 1012 | return cpu + kernel + libc; |
| 1013 | } |
| 1014 | |
| 1015 | /** |
| 1016 | * Get the library paths from ldconfig cache. Tested against ldconfig 2.13. |
no test coverage detected