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

Re: Intent to package: GtkGL and apps



On Wed, Jul 22, 1998 at 04:48:04PM +0200, Stephane Bortzmeyer wrote:

> Linking with gcc produces libraries which are "statically linked"
> according to ldd.

> /bin/sh ../libtool --mode=link gcc -g -O2  -o libgdkGL.la -rpath /usr/local/lib -version-info 0:8:0 gdkGL.lo gdkGLcontext.lo gdkGL_gdkutils.lo

* -rpath is evil. Quote from /usr/doc/lintian/libtool-rpath-workaround.txt:

Thanks to Yann Dirson for providing this trick!

--

It is a configure.in code snippet.  Be sure to insert it *after* call
to AM_PROG_LIBTOOL.

====
# Turn around -rpath problem 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 \
    's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec="
-D__LIBTOOL_IS_A_FOOL__ "/'
    mv libtool-2 libtool
    chmod 755 libtool
  ;;
esac
====

* You have to include -lc and other libraries to get ldd to say the library
  is linked to something else. For that you have to modify *_LDADD in the
  Makefile.am's (or Makefile.in's if the others are not there)


						Marcelo


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: