[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
installing libtool libraries in different directories
From: |
Paolo Bonzini |
Subject: |
installing libtool libraries in different directories |
Date: |
Mon, 21 Mar 2011 12:22:56 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
In my Makefile.am I have code like this:
lib_LTLIBRARIES = libgst-gobject.la
libgst_gobject_la_SOURCES = gst-gobject.c
libgst_gobject_la_LDFLAGS = -version-info 1:0:0 -no-undefined
moduleexec_LTLIBRARIES = gst-glib.la
gst_glib_la_LDFLAGS = -rpath $(moduleexecdir) -release $(VERSION) \
-module -no-undefined
gst_glib_la_LIBADD = libgst-gobject.la
gst_glib_la_DEPENDENCIES = libgst-gobject.la
dist_gst_glib_la_SOURCES = gst-glib.c
However, when I install the package with -j4, this rule starts both
install targets in parallel:
install-exec-am: install-libLTLIBRARIES install-moduleexecLTLIBRARIES
As a result, the gst-glib library is installed before libgst-gobject has
been relinked. :( I'm not sure if it is an Automake or Libtool bug, and
I can work around it with a rule like this:
install-libLTLIBRARIES: | install-moduleexecLTLIBRARIES
or with a .NOTPARALLEL (the directory is small). But the bug can be
more tricky for packages with a non-recursive Makefile...
Paolo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- installing libtool libraries in different directories,
Paolo Bonzini <=