Re: Autoconf/configure

Petter Reinholdtsen (pere@hungry.com)
Sat, 6 Nov 1999 13:30:43 +0800

[Scott J. Kramer]
> I think intended usage is "LDFLAGS=-llibrary ..." and "LIBS=-Ldir
> ...", with inevitable exceptions (details upon request :-). Might
> also add "-s" to LDFLAGS and "-Rdir" to LIBS, for example.

I'm quite sure it is the other way around.

LIBS should contain -l and full path to libraries only. LDFLAGS
should contain -L and (-rpath|+r|-R) (and maybe some other).

On some platforms (At least HPUX), it is required that the -L options
are before the -l options. I believe the standard require LDFLAGS to
be placed before LIBS when running ld, to make it run on any platform.

BTW: What is linker flag -s?

-- 
##>  Petter Reinholdtsen  <##  |  pere@td.org.uit.no

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com