GNU bug report logs - #11465
libtool --mode=install: please add an option to install DSO to /lib and development library to /usr/lib

Previous Next

Package: libtool;

Reported by: Jonathan Nieder <jrnieder <at> gmail.com>

Date: Sun, 13 May 2012 22:12:02 UTC

Severity: wishlist

To reply to this bug, email your comments to 11465 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#11465; Package libtool. (Sun, 13 May 2012 22:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Sun, 13 May 2012 22:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Nieder <jrnieder <at> gmail.com>
To: bug-libtool <at> gnu.org
Subject: libtool --mode=install: please add an option to install DSO to /lib
	and development library to /usr/lib
Date: Sun, 13 May 2012 17:10:45 -0500
Severity: wishlist

Hi,

On Linux-based systems sometimes one wants to install basic DSOs that
need to be available before /usr is mounted to /lib.  Static libraries
and the development symlink stay in /usr/lib.  The usual method for
doing so is to stage an install to $(DESTDIR)/usr/lib and then move
selected files up one level:

	install_using_libtool_as_usual
	mv $(DESTDIR)/usr/lib/libfoo.so.* $(DESTDIR)/lib/
	rm $(DESTDIR)/usr/lib/libfoo.so $(DESTDIR)/usr/lib/libfoo.la
	ln -s /lib/libfoo.so.0 $(DESTDIR)/usr/lib/libfoo.so

It would be nicer if this after-the-fact tweaking could be taken
care of automatically.  That is, I am imagining being able to do

	libtool --destdir=$(DESTDIR) --dsodir=/lib \
		--mode=install install libfoo.la $(DESTDIR)/usr/lib

Semantics:

 - static library goes to /usr/lib
 - shared library goes to /lib
 - libtool library goes to /lib, I guess
 - development symlink goes to /usr/lib

Alternatively, the syntax could be

	libtool --destdir=$(DESTDIR) --develdir=/usr/lib \
		--mode=install install libfoo.la $(DESTDIR)/lib

What do you think?  Would this be sensible?

Thanks,
Jonathan




This bug report was last modified 13 years and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.