[gambit-list] location of libgambcgsi.so

Marijn Schouten (hkBst) hkBst at gentoo.org
Mon Dec 1 17:34:52 EST 2008


Marijn Schouten (hkBst) wrote:
> Anyway, I think I have DESTDIR support mostly done; I just need to do the
> linking once and set the correct rpath. Though without libtool my modifications
> will likely only work correctly on GNU-compatible systems.
> 
> Marijn

Alright, so I finished hacking on this for now. I have added DESTDIR support,
then did the minimum effort changes to the rest of the build logic. I hope
this may be useful to someone, or will help start a discussion about the build
system.

I ran the following commands over the source to do the changes:

	find -name tests -prune -o -name makefile.in -print | \
		xargs sed --in-place -f ${FILESDIR}/add_DESTDIR-to_INSTALL.sed

	sed -e "s:\(LINK='\$(C_COMPILER)\):\1 -Wl,--rpath -Wl,\$(libdir):" \
-i configure.ac

	sed -e "s:\(LINK_LIBS\):\1_CL:" -i configure.ac
	sed -e "s:\(MAKE_LIBRARY_LIBS\):\1_CL:" -i configure.ac

then ran autotools. Further it will only work when configured with --enable-shared.

The total resulting change I also attached (DESTDIR.patch).
Unfortunately a disproportional part of the patch is about disabling "rm -f" in
non-uninstall targets (uninstall targets mangled as collateral damage).

Marijn

-- 
Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: add_DESTDIR-to_INSTALL.sed
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20081201/421b432a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DESTDIR.patch
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20081201/421b432a/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20081201/421b432a/attachment.sig>


More information about the Gambit-list mailing list