Add configuration option to use system libffi

Project:GNU Smalltalk
Component:Build
Category:feature
Priority:normal
Assigned:bonzinip
Status:fixed
Description

Hello. I recently resumed making libffi releases. In Fedora, somebody recently patched GNU Smalltalk to use the system's libffi package. I think, however, that it was probably a hack. It would be nice if the upstream project provided a configuration option to use the system's pre-installed libffi. Thanks!

Updates

#1 submitted by Paolo Bonzini on Mon, 02/18/2008 - 13:21
Assigned to:Unassigned» bonzinip

Great. Thomas, can you send me the patch you use to select the system libsigsegv and (IIRC) libffi?

Thanks!

#2 submitted by Thomas Girard on Mon, 02/18/2008 - 23:29
Attachment:06_use_system_libs.patch (2.95 KB)

Hello, please find attached the patch we use for Debian.

That's also a quick hack. I will try to provide a better patch later.

#3 submitted by Paolo Bonzini on Tue, 02/19/2008 - 13:30
Attachment:gst-system-libs.patch (198 bytes)

I used Thomas' patch to avoid forgetting any place and produced the thing I attach. Can you test it with configure flags --with-system-libffi --with-system-libsigsegv?

(regenerated files are not included in the patch)

#4 submitted by Paolo Bonzini on Thu, 02/28/2008 - 07:08
Status:active» fixed

nothing heard, should be fixed. :-)

#5 submitted by Thomas Girard on Sat, 03/08/2008 - 15:34
Status:fixed» patch
Attachment:system_libs.patch (531 bytes)

Hello,

I had no time to try this patch before today.

It had a small typo, see the attached patch (against the previous patch attached to this issue).

#6 submitted by Paolo Bonzini on Tue, 03/18/2008 - 09:58
Status:patch» fixed

patch applied (and btw in the meanwhile I upgraded the included libffi to 3.0.4)

User login