#158 ✓hold
Peter Johnson

yasm should create libyasm.so along with libyasm.a

Reported by Peter Johnson | June 25th, 2011 @ 07:51 PM

Originally posted on Trac by postmodern.mod3@gmail.com
Original Trac Ticket

  Description

I compiled and installed yasm-0.8.0 from source on my Fedora Core 10 system, and noticed that libyasm.a was installed. While having libyasm.a is useful for compiling programs against yasm, I need libyasm.so in order to write dynamic bindings for Ruby (using libffi and ruby-ffi which dynamically links against libyasm.so at runtime).

Could the build system be modified to also produce a libyasm.so file?

Trac Attachments

h3. Trac Comments
comment:1

              Changed 2 years ago by postmodern.mod3@gmail.com


I did notice that the CMake build-system in SVN trunk/yasm/ does build a libyasm.so, but the SVN trunk contains a couple bugs currently.

comment:2

              Changed 2 years ago by peter@tortall.net


What bugs are you referring to?  In the CMake build?  If you give me some more details I'll work on getting them fixed.

comment:3

              Changed 2 years ago by postmodern.mod3@gmail.com


I believe the bug is that configure.ac and autoconf generates a Makefile that only builds libyasm.a, and not libyasm.so. I lack experience with autoconf, so I don't really know how to enable the building of shared-object libraries.

comment:4

              Changed 2 years ago by peter@tortall.net


It was a conscious decision to remove shared object support from the autoconf/automake build tree, as using libtool significantly inflates build times and basically no one was using the shared objects.  If there is renewed interest in shared library builds without using CMake, we can re-examine this decision.

comment:5

              Changed 2 years ago by postmodern.mod3@gmail.com


If libtool is slowing down the build-process, Dolt (dolt.freedesktop.org/) might be worth looking into.

"Dolt provides a drop-in replacement for libtool that significantly decreases compile times on the platforms it supports. Rather than the libtool approach of running a large script for every compile that repeatedly figures out how to build libraries on the platform, dolt figures out those details at configure time and writes out a minimal doltcompile script containing only the commands needed to build a library on the current platform."

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages