bug-automake
[Top][All Lists]
Advanced

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

AM_PROG_LEX does not set LEXLIB properly


From: Pete Ryland
Subject: AM_PROG_LEX does not set LEXLIB properly
Date: 22 Jan 2003 18:11:14 +0000

My configure.in has the AM_PROG_LEX macro in it.  On a machine here[1]
(that I don't maintain) we have flex installed at /opt/sfw/ and the
configure script quite happily sets the variable LEXLIB to -lfl and the
conftest passes.  However, I end up with the following error:

/bin/bash ../../libtool --mode=link gcc  -g -O2  -o libphp_psfp.la
-avoid-version -module -rpath /home/peter/local/lib  php_psfp.lo -L..
-lpsfp -lfl -L/home/peter/local/lib -L/home/peter/local/lib/mysql
-lmysqlclient -L/home/peter/local/lib -lpcre -lmysqlclient -lpcre
rm -fr .libs/libphp_psfp.la .libs/libphp_psfp.* .libs/libphp_psfp.*
/usr/ccs/bin/ld -G -h libphp_psfp.so -o .libs/libphp_psfp.so 
php_psfp.lo  -R/home/peter/psfp/src/.libs -R/home/peter/local/lib/mysql
-R/home/peter/local/lib -R/home/peter/local/lib
-R/home/peter/local/lib/mysql  -L/home/peter/local/lib/mysql
-L/home/peter/local/lib -L/home/peter/psfp/src
/home/peter/psfp/src/.libs/libpsfp.so -lfl
/home/peter/local/lib/mysql/libmysqlclient.so
/home/peter/local/lib/libpcre.so  -lc 
ld: fatal: library -lfl: not found
ld: fatal: File processing errors. No output written to
.libs/libphp_psfp.so

when processing this Makefile.am:

LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS)
-o $@ -avoid-version -module

lib_LTLIBRARIES         = libphp_psfp.la
libphp_psfp_la_SOURCES  = php_psfp.c php_psfp.h
libphp_psfp_la_LIBADD   = -L.. -lpsfp @LEXLIB@ @MYSQLLIB@ @PCRELIB@
CPPFLAGS                = $(PHPINCLUDES)
DEFS                    = -DCOMPILE_DL_PSFP
libdir                  = $(PHPEXTDIR)

I'm thinking that it may be a good idea to have LEXLIB also include a
-L/path/to/libfl.a option.  Or am I just confused?

And BTW, when I try to set LD to gld (the name of the binary for GNU ld
on the system) it again works for the conftests, but then reverts back
to /usr/ccs/bin/ld for the actual compilation.

Versions are:
automake (GNU automake) 1.6.2
autoconf (GNU Autoconf) 2.53
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)

but even the latest versions I've noticed don't set -L for LEXLIB
either.

Thanks,
Pete

[1] SunOS zebra1 5.8 Generic_108528-16 sun4u sparc SUNW,Sun-Fire-280R
-- 
Pete Ryland <address@hidden>
Tangozebra

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________




reply via email to

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