Skip to content

Commit

Permalink
For linux, explicitly use libc.so.6 instead of 'c', since JNA will ma…
Browse files Browse the repository at this point in the history
…p that to 'libc.so' which won't work on most linux distros.

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@7930 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
vp-of-awesome committed Oct 28, 2008
1 parent 5bc8cdc commit 05ac543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jruby/ext/ffi/Platform.java
Expand Up @@ -87,7 +87,7 @@ private static final String getArchitecture() {
public static final boolean IS_LINUX = OS.equals(LINUX);
public static final boolean IS_SOLARIS = OS.equals(SOLARIS);
public static final boolean IS_BSD = IS_MAC || IS_FREEBSD || IS_OPENBSD;
public static final String LIBC = IS_WINDOWS ? "msvcrt" : "c";
public static final String LIBC = IS_WINDOWS ? "msvcrt" : IS_LINUX ? "libc.so.6" : "c";
public static final String NAME = String.format("%s-%s", ARCH, OS);
public static final int BIG_ENDIAN = 4321;
public static final int LITTLE_ENDIAN = 1234;
Expand Down

0 comments on commit 05ac543

Please sign in to comment.