[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building ncurses with libtool (32/64 bit)
From: |
Albert Chin |
Subject: |
Re: Building ncurses with libtool (32/64 bit) |
Date: |
Thu, 15 Jan 2004 09:46:59 -0600 |
User-agent: |
Mutt/1.4i |
On Thu, Jan 15, 2004 at 05:16:47AM -0500, Thomas Dickey wrote:
> On Wed, 14 Jan 2004, Albert Chin wrote:
>
> > Is there a reason AC_PROG_LIBTOOL isn't called to build a _custom_
> > libtool to build ncurses? If someone wants to build 32 and 64-bit
>
> I hadn't noticed the macro (will look & see).
I've attached the patch we use. It's against the latest version. The
only thing missing is a way to bring in libtool.m4.
--
albert chin (address@hidden)
-- snip snip
--- aclocal.m4.orig Mon Jan 12 05:17:17 2004
+++ aclocal.m4 Thu Jan 15 09:43:46 2004
@@ -3366,8 +3371,6 @@
dnl symbols for the makefile rules.
AC_DEFUN([CF_WITH_LIBTOOL],
[
-LIBTOOL=
-
# common library maintenance symbols that are convenient for libtool scripts:
LIB_CREATE='$(AR) -cr'
LIB_OBJECT='$(OBJECTS)'
@@ -3389,17 +3392,9 @@
[with_libtool=no])
AC_MSG_RESULT($with_libtool)
if test "$with_libtool" != "no"; then
- if test "$with_libtool" != "yes" ; then
- CF_PATH_SYNTAX(with_libtool)
- LIBTOOL=$with_libtool
- else
- AC_PATH_PROG(LIBTOOL,libtool)
- fi
- if test -z "$LIBTOOL" ; then
- AC_MSG_ERROR(Cannot find libtool)
- fi
+ AC_PROG_LIBTOOL
- LIB_CREATE='$(LIBTOOL) --mode=link $(CC) -rpath $(DESTDIR)$(libdir)
-version-info `cut -f1 $(srcdir)/VERSION` -o'
+ LIB_CREATE='$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -rpath
$(DESTDIR)$(libdir) -version-info `cut -f1 $(srcdir)/VERSION` -o'
LIB_OBJECT='$(OBJECTS:.o=.lo)'
LIB_SUFFIX=.la
LIB_CLEAN='$(LIBTOOL) --mode=clean'
@@ -3409,27 +3404,7 @@
LIB_UNINSTALL='$(LIBTOOL) --mode=uninstall'
LIB_PREP=:
- # Show the version of libtool
- AC_MSG_CHECKING(version of libtool)
-
- # Save the version in a cache variable - this is not entirely a good
- # thing, but the version string from libtool is very ugly, and for
- # bug reports it might be useful to have the original string.
- cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '2,$d' -e
's/^[[^1-9]]*//' -e 's/[[^0-9.]].*//'`
- AC_MSG_RESULT($cf_cv_libtool_version)
- if test -z "$cf_cv_libtool_version" ; then
- AC_MSG_ERROR(This is not libtool)
- fi
-
- # special hack to add --tag option for C++ compiler
- case $cf_cv_libtool_version in
- 1.[[5-9]]*|[[2-9]]*)
- LIBTOOL_CXX="$LIBTOOL --tag=CXX"
- ;;
- *)
- LIBTOOL_CXX="$LIBTOOL"
- ;;
- esac
+ LIBTOOL_CXX="$LIBTOOL --tag=CXX"
else
LIBTOOL=""
LIBTOOL_CXX=""
--- c++/Makefile.in.orig 2004-01-12 05:05:13.865894000 -0600
+++ c++/Makefile.in 2004-01-12 05:13:53.177975000 -0600
@@ -44,6 +44,7 @@
MODEL = ../@DFT_OBJ_SUBDIR@
DESTDIR = @DESTDIR@
srcdir = @srcdir@
+top_builddir = ..
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
@@ -148,7 +149,8 @@
$(RANLIB) $@
../lib/$(LIBNAME_LIBTOOL) : $(LIB_OBJS)
- cd ../lib && $(LIBTOOL_LINK) $(CXX) -o $(LIBNAME) $(LIB_OBJS:$o=.lo) \
+ cd ../lib && $(LIBTOOL_LINK) $(CXX) $(CXXFLAGS) \
+ -o $(LIBNAME) $(LIB_OBJS:$o=.lo) \
-rpath $(INSTALL_PREFIX)$(libdir) \
-version-info $(NCURSES_MAJOR):$(NCURSES_MINOR) $(SHLIB_LIST)
--- form/Makefile.in.orig 2004-01-12 05:05:19.119660000 -0600
+++ form/Makefile.in 2004-01-12 05:13:53.234102000 -0600
@@ -51,6 +51,7 @@
MODEL = @DFT_LWR_MODEL@
DESTDIR = @DESTDIR@
srcdir = @srcdir@
+top_builddir = ..
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
--- menu/Makefile.in.orig 2004-01-12 05:05:23.248657000 -0600
+++ menu/Makefile.in 2004-01-12 05:13:53.286743000 -0600
@@ -51,6 +51,7 @@
MODEL = @DFT_LWR_MODEL@
DESTDIR = @DESTDIR@
srcdir = @srcdir@
+top_builddir = ..
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
--- ncurses/Makefile.in.orig 2004-01-12 05:05:27.352423000 -0600
+++ ncurses/Makefile.in 2004-01-12 05:13:53.332660000 -0600
@@ -57,6 +57,7 @@
MODEL = @DFT_LWR_MODEL@
DESTDIR = @DESTDIR@
top_srcdir = @top_srcdir@
+top_builddir = ..
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
--- panel/Makefile.in.orig 2004-01-12 05:05:30.331340000 -0600
+++ panel/Makefile.in 2004-01-12 05:13:53.397111000 -0600
@@ -51,6 +51,7 @@
MODEL = @DFT_LWR_MODEL@
DESTDIR = @DESTDIR@
srcdir = @srcdir@
+top_builddir = ..
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
--- progs/Makefile.in.orig 2004-01-12 05:05:30.397807000 -0600
+++ progs/Makefile.in 2004-01-12 05:13:53.451135000 -0600
@@ -54,6 +54,7 @@
MODEL = ../@DFT_OBJ_SUBDIR@
DESTDIR = @DESTDIR@
srcdir = @srcdir@
+top_builddir = ..
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
--- tack/Makefile.in.orig 2004-01-12 05:05:30.642618000 -0600
+++ tack/Makefile.in 2004-01-12 05:13:55.738731000 -0600
@@ -22,6 +22,7 @@
MODEL = ../@DFT_OBJ_SUBDIR@
DESTDIR = @DESTDIR@
srcdir = @srcdir@
+top_builddir = ..
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
--- test/Makefile.in.orig 2004-01-12 05:05:31.097923000 -0600
+++ test/Makefile.in 2004-01-12 05:13:56.179471000 -0600
@@ -43,6 +43,7 @@
MODEL = ../@DFT_OBJ_SUBDIR@
srcdir = @srcdir@
+top_builddir = ..
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
- Building ncurses with libtool (32/64 bit), Albert Chin, 2004/01/14
- Re: Building ncurses with libtool (32/64 bit), Thomas Dickey, 2004/01/15
- Re: Building ncurses with libtool (32/64 bit),
Albert Chin <=
- Re: Building ncurses with libtool (32/64 bit), Thomas Dickey, 2004/01/15
- Re: Building ncurses with libtool (32/64 bit), Albert Chin, 2004/01/15
- Re: Building ncurses with libtool (32/64 bit), Thomas Dickey, 2004/01/16
- Re: Building ncurses with libtool (32/64 bit), Albert Chin, 2004/01/16
- Re: Building ncurses with libtool (32/64 bit), Thomas Dickey, 2004/01/16
- Re: Building ncurses with libtool (32/64 bit), Thomas Dickey, 2004/01/16
- Re: Building ncurses with libtool (32/64 bit), Kevin Ryde, 2004/01/16
- Re: Building ncurses with libtool (32/64 bit), Thomas Dickey, 2004/01/16
- Re: Building ncurses with libtool (32/64 bit), Kevin Ryde, 2004/01/17
- Re: Building ncurses with libtool (32/64 bit), Thomas Dickey, 2004/01/17