[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?
From: |
David Combs |
Subject: |
Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)? |
Date: |
Fri, 23 May 2003 05:28:17 +0000 (UTC) |
In article <pan.2003.05.22.15.45.10.303311@yahoo.com>,
Dave Uhring <daveuhring@yahoo.com> wrote:
>On Thu, 22 May 2003 15:06:10 +0000,
>bbense+gnu.emacs.help.comp.unix.solaris.May.22.0 wrote:
>
>> _ AFAIK, autoconf doesn't know how to set these things. You
>> either have to write your own hacks to configure.in or use the
>> generic libtool solution. Libtool was written to solve exactly
>> this problem.
>
>/tmp/emacs-21.3/src/Makefile generated with $LDFLAGS=""
>
>LDFLAGS= -L/usr/openwin/lib
>X11_LDFLAGS = -L/usr/openwin/lib
>LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) -ltiff -ljpeg -lpng -lz -lm -lXpm
>-lX11
>
Since I uses csh, I made a file env.source:
setenv LDFLAGS '-L/usr/openwin/lib'
setenv X11_LDFLAGS '-L/usr/openwin/lib'
setenv LIBX '$(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) -ltiff -ljpeg -lpng -lz -lm
-lXpm -lX11'
, and then said "source env.source", and then "env", and got:
LDFLAGS=-L/usr/openwin/lib
X11_LDFLAGS=-L/usr/openwin/lib
LIBX=$(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) -ltiff -ljpeg -lpng -lz -lm -lXpm -lX11
110 ==/david3/from_netcom-dir2/sources-stuff/emacs-21.3==>
as the final three lines.
Look ok to you?
>Note that the -R/usr/openwin/lib linking argument does not exist. Neither
>does -L/usr/sfw/lib and hence /usr/ccs/bin/ld is NOT going to find
>libtiff.so, libjpeg.so or libpng.so, let alone provide the required
>run-time link paths.
>
>Now export LDFLAGS properly and run configure again.
I think (maybe wrongly, for sure!) that csh has no export cmd,
nor(?) needs one?
Oh, better do a "make clean", I suppose, first.
>The src/Makefile now has:
>
>LDFLAGS=-L/usr/openwin/lib -R/usr/openwin/lib -L/usr/sfw/lib -R/usr/sfw/lib
>-L/usr/openwin/lib
>X11_LDFLAGS = -L/usr/openwin/lib
>LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) -ltiff -ljpeg -lpng -lz -lm -lXpm
>-lX11
>
>The build time linker will now not only find the required libraries but
>will place the library search path within the resultant binary executables.
>
>Libtool had nothing to do with it.
>
>[emacs-21.3]$ grep libtool *
>[emacs-21.3]$
>
>
>
Here's what I ended up with in that src/Makefile:
LDFLAGS=-L/usr/openwin/lib -L/usr/openwin/lib
...
X11_LDFLAGS = -L/usr/openwin/lib
LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) -lXpm -lX11
Note that my libx is a lot shorter than yours; I guess I'll ltry
making it this way first, then worry later about those other
things.
David
- Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, David Combs, 2003/05/20
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, Dave Uhring, 2003/05/20
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, David Combs, 2003/05/21
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, Stefan Monnier, 2003/05/21
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, Darren Dunham, 2003/05/21
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, Stefan Monnier, 2003/05/21
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, bbense+gnu.emacs.help.comp.unix.solaris.May.22.03, 2003/05/22
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, Dave Uhring, 2003/05/22
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?,
David Combs <=
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, David Combs, 2003/05/23
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, Dave Uhring, 2003/05/23
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, David Combs, 2003/05/25
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, Dave Uhring, 2003/05/25
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, Dave Uhring, 2003/05/23
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, David Combs, 2003/05/23
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, Miles Bader, 2003/05/23
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, David Combs, 2003/05/22
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, Stefan Monnier, 2003/05/22
- Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?, David Combs, 2003/05/22