help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?


From: Dave Uhring
Subject: Re: Has anyone actually built emacs 21.3 for SOLARIS (sparc)?
Date: Thu, 22 May 2003 10:45:13 -0500
User-agent: Pan/0.13.94 (God will roast their stomachs in Hell)

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

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.  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]$ 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]