[Top][All Lists]

[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, wrote:

> _ AFAIK, autoconf doesn't know how to set these things. You
>   either have to write your own hacks to 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 

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, or, let alone provide the required
run-time link paths.

Now export LDFLAGS properly and run configure again.  The src/Makefile now

LDFLAGS=-L/usr/openwin/lib -R/usr/openwin/lib -L/usr/sfw/lib -R/usr/sfw/lib 
X11_LDFLAGS = -L/usr/openwin/lib
LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) -ltiff -ljpeg -lpng -lz -lm -lXpm 

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 *

reply via email to

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