[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

libtool & rpath

A package I maintain uses libtool. To remove the rpath stuff, I 
apply this patch to configure.in. Now lintian tells me that the executables
have rpath set too! Is there an easy way to fix that?

Also, because this package (geda) includes a library, debhelper
is generating an shlibs file for it. But then the package ends up
depending on itself, because of the shlib:Depends expansion. Is there
an easy fix for that? Splitting the packages is a possibility, but
libgeda is of absolutely no use on its own yet, and I don't think there
is anything for a libgeda-dev.


--- geda-19981117.orig/configure.in
+++ geda-19981117/configure.in
@@ -35,6 +35,19 @@
 dnl Initialize libtool

+# Turn around -rpath and -lc problems with libtool 1.0c
+# This define should be improbable enough to not conflict with anything
+case ${host} in
+  *-pc-linux-gnu)
+    AC_MSG_RESULT([Fixing libtool for -rpath problems.])
+    sed < libtool > libtool-2 \
+      -e 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \
+      -e '/^archive_cmds="/s/"$/ \\$deplibs"/'
+    mv libtool-2 libtool
+    chmod 755 libtool
+  ;;
 dnl Initialize maintainer mode

Hamish Moffatt VK3TYD              hamish@debian.org, hamish@rising.com.au
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org

Reply to: