Remove .la files generated by autotools

Bug #1604743 reported by Robert Ancell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Low
Robert Ancell

Bug Description

If you build a part that depends on a library part, e.g.

parts:
glib:
plugin: autotools
source: https://download.gnome.org/core/3.20/3.20.2/sources/glib-2.48.1.tar.xz
glib-networking:
plugin: autotools
source: https://download.gnome.org/core/3.20/3.20.2/sources/glib-networking-2.48.2.tar.xz
after:
- glib

Then the dependant part fails to link due to the .la files being moved around:

CCLD glib-pacrunner
libtool: warning: library '/home/bob/bzr/gnome-3-20-snap/stage/lib/libgio-2.0.la' was moved.
libtool: error: cannot find the library '/lib/libgobject-2.0.la' or unhandled argument '/lib/libgobject-2.0.la'

.la files aren't commonly used (they are removed in Debian) and removing them fixes this issue. See discussion http://stackoverflow.com/questions/7104494/building-so-module-with-autotools-libtool-without-la-and-a-variants-being-ins

Revision history for this message
Robert Ancell (robert-ancell) wrote :
Changed in snapcraft:
assignee: nobody → Robert Ancell (robert-ancell)
Changed in snapcraft:
milestone: none → 2.16
importance: Undecided → Low
status: New → In Progress
status: In Progress → Fix Committed
Changed in snapcraft:
milestone: 2.16 → 2.15.1
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.