WEB Spy

2002-03-07 Thread Spy

WWW.EXTREEM.COM
Note: this is not a Spam email. This email was sent to you because your email was 
entered in on a website requesting to be a
registered subscriber. If you did not request this email, please reply to this message 
and type remove   


Re: cross-compiling question: static libraries and binaries to different places?

2002-03-07 Thread Dan Kegel

Guido Draheim wrote:
 ... See - the libtool crossgcc support (to which I did
 contribute some of the time) can simply ask the cross-gcc
 for the local searchpath via `gcc -print-search-dirs` -
 this is needed for win32 compiles atleast, and I have a
 patch on my disk which generalizes the idea for all
 cross-gcc targets (since there have been problems with
 crosscompiling linux-to-linux). 

You mean this?

--- libtool.m4.orig Thu Mar  7 16:58:42 2002
+++ libtool.m4  Thu Mar  7 17:04:23 2002
@@ -2312,6 +2312,13 @@
   dynamic_linker=no
   ;;
 esac
+
+# When cross-compiling, get the list of system library directories
+# from gcc if possible, since hardcoded paths above are surely wrong.
+if test $GCC = yes  test $cross_compiling = yes; then
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep ^libraries: | sed -e 
+s/^libraries:// -e s/;/ /g`
+fi
+
 AC_MSG_RESULT([$dynamic_linker])
 test $dynamic_linker = no  can_build_shared=no
 ##

I just spent two hours realizing why libtool could not link with shared
libraries when cross-compiling; it ended up being exactly the thing
you're talking about.  I created a patch according to your suggestion
on the libtool mailing list, and it makes life much nicer.

Is this in CVS yet?  By golly, it sure needs to be.

- Dan

___
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool



Unbalanced parenths in 'ltdl.m4' emitted to 'configure'

2002-03-07 Thread Grzegorz Jakacki


Hi,

  $ libtool --version
  ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)

The macro from 'ltdl.m4' emitted by Autoconf to my 'configure' causes
syntax error

  ~/mypackage $ ./configure
  ./configure: syntax error at line 434: `)' unexpected

My 'configure' looks like:

 424: # serial 2 AC_LIB_LTDL
 425:
 426: # AC_LIB_LTDL
 427: # ---
 428: # Perform all the checks necessary for compilation of the ltdl objects
 429: #  -- including compiler checks and header checks.
 430: # AC_LIB_LTDL
 431:
 432: # AC_LTDL_ENABLE_INSTALL
 433: # --
434: ])# AC_LTDL_ENABLE_INSTALL
 435:
 436: # AC_LTDL_SYS_DLOPEN_DEPLIBS
 437: # --
 438: # AC_LTDL_SYS_DLOPEN_DEPLIBS

I traced this down to 'ltdl.m4':

 60: # AC_LTDL_ENABLE_INSTALL
 61: # --
 62: AC_DEFUN(AC_LTDL_ENABLE_INSTALL,
 63: [AC_ARG_ENABLE(ltdl-install,
 64: [  --enable-ltdl-install   install libltdl])
 65:
 66: AM_CONDITIONAL(INSTALL_LTDL, test x${enable_ltdl_install-no} != xno)
 67: AM_CONDITIONAL(CONVENIENCE_LTDL, test x${enable_ltdl_convenience-no} != xno)
68: ])])# AC_LTDL_ENABLE_INSTALL

With parentheses on ltdl.m4:68 unbalanced in the whole 'ltdl.m4' (to be
precise: it balances the '(' inserted on the first line if I remove all
case ... esac).

The parentheses are still unbalanced in the revision 1.39.

Regards
Grzegorz

PS: Plese CC me, I am not on the list.

###
# Grzegorz Jakacki China IC Design Center #
# Senior Engineer, CAD Dept.   1 Gaojiayuan, Chaoyang #
# tel. +86-10-64365577 x2009   Beijing 100015, China  #
# Copyright (C) 2002 Grzegorz Jakacki, CIDC. All Rights Reserved. #
###


___
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool