[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does libtool support cross compile?
From: |
H . J . Lu |
Subject: |
Re: Does libtool support cross compile? |
Date: |
Sun, 12 May 2002 20:42:41 -0700 |
User-agent: |
Mutt/1.2.5i |
On Mon, May 13, 2002 at 09:40:23AM +0800, Grzegorz Jakacki wrote:
>
> Libtool is a software developed by volunteers. Saying that libtool is
> "brain dead" is extremely rude and shows little respect to the people who
> contribute their time for the benefit of others. Do you believe, that they
> will be willing to help you after they read the last sentence of your
> e-mail?
I never liked libtool. It has caused me so much trouble. In any case,
I fixed my problem on Linux. Here is a kludge I am using.
H.J.
---
--- libtool-1.4.2/acinclude.m4.search Mon Sep 10 20:16:01 2001
+++ libtool-1.4.2/acinclude.m4 Fri May 10 17:38:00 2002
@@ -2150,6 +2150,9 @@ linux-gnu*)
version_type=linux
need_lib_prefix=no
need_version=no
+ if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" |
sed -e "s/^libraries:[ \t]*[=]*//" -e "s/:/ /g"`
+ fi
library_names_spec='${libname}${release}.so$versuffix
${libname}${release}.so$major $libname.so'
soname_spec='${libname}${release}.so$major'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
--- libtool-1.4.2/aclocal.m4.search Fri May 10 17:35:36 2002
+++ libtool-1.4.2/aclocal.m4 Fri May 10 17:38:12 2002
@@ -2102,6 +2102,9 @@ linux-gnu*)
version_type=linux
need_lib_prefix=no
need_version=no
+ if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" |
sed -e "s/^libraries:[ \t]*[=]*//" -e "s/:/ /g"`
+ fi
library_names_spec='${libname}${release}.so$versuffix
${libname}${release}.so$major $libname.so'
soname_spec='${libname}${release}.so$major'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
--- libtool-1.4.2/libtool.m4.search Fri May 10 17:35:36 2002
+++ libtool-1.4.2/libtool.m4 Fri May 10 17:38:19 2002
@@ -2150,6 +2150,9 @@ linux-gnu*)
version_type=linux
need_lib_prefix=no
need_version=no
+ if test "$GCC" = yes; then
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" |
sed -e "s/^libraries:[ \t]*[=]*//" -e "s/:/ /g"`
+ fi
library_names_spec='${libname}${release}.so$versuffix
${libname}${release}.so$major $libname.so'
soname_spec='${libname}${release}.so$major'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'