Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a jffi-x86_64-OpenBSD.jar file #43

Merged
merged 1 commit into from
Dec 12, 2016
Merged

Add a jffi-x86_64-OpenBSD.jar file #43

merged 1 commit into from
Dec 12, 2016

Conversation

buzzdeee
Copy link
Contributor

this PR is with regard to issue #38

the openbsd port of jruby builds the libjffi-1.2.so the following way:

cc -o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/libjffi-1.2.so -pthread -shared -static-libgcc /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Array.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/deprecated.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Library.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/LongDouble.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/MemoryIO.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Internals.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/CallContext.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/MemoryUtil.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Memory.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Invoke.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/LastError.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/FastNumericInvoker.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Type.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Foreign.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/FastIntInvoke.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Exception.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/ClosureMagazine.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Struct.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/FastLongInvoke.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/libffi-x86_64-openbsd/.libs/libffi_convenience.a

which dynamically links in libpthread, since that then links to libpthread.so.X.Y, and those major/minor
can change over time, I changed that compilation to link against the static libpthread like this:

cc -o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/libjffi-1.2.so -shared -static-libgcc /usr/lib/libpthread.a /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Array.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/deprecated.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Library.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/LongDouble.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/MemoryIO.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Internals.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/CallContext.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/MemoryUtil.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Memory.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Invoke.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/LastError.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/FastNumericInvoker.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Type.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Foreign.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/FastIntInvoke.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Exception.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/ClosureMagazine.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/Struct.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/jffi/FastLongInvoke.o /home/ports/pobj/amd64/jruby-9.1.6.0/jruby-9.1.6.0/jffi/build/jni/libffi-x86_64-openbsd/.libs/libffi_convenience.a

@headius
Copy link
Member

headius commented Dec 12, 2016

Thank you! Surprising we went this many years without someone realizing there's no OpenBSD support :-)

@headius headius merged commit c1af444 into jnr:master Dec 12, 2016
@headius headius added this to the 1.2.14 milestone Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants