What is the actual error you are receiving? Can you also post the command line that is generating the error (not the configure command line, but the actual command line that is getting executed during build)? What I meant is that when linking a program, you have something like this: gcc -o prog file1.o file2.o -L/some/path -llibrary1 -llibrary2 When linking dynamically, the ordering of the files and libraries is pretty much irrelevant. However, when linking statically, the libraries used should appear on the command line after all the source (object) files. And, if any of the libraries depend on another library on the command line, they should come after the libraries they depend on. For example, if library2 uses library1 in the example above, then they would be ordered backwards as they are. However, to fix that, you would need to hack the Makefiles after running your configure script. First post the actual error and the command line producing it. Then we can go from there. Cheers, Lyle -----Original Message----- From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of Mansour Al-Aqeel Sent: Monday, December 29, 2003 1:18 PM To: gcc-help@xxxxxxxxxxx Subject: RE: LDFLAGS -static On Mon, 29 Dec 2003 10:37:44 -0700, lrtaylor@xxxxxxxxxx said: Thaks alot Lyle for replaying: The static built of the labrary is there libnewt.a the program I'm tring to build in nparted for partitioning a disk. there is no error message I'm getting except for this library. configure script stops before checking other libraries. I dont know what did you mean by th elibrary is specified too early. do you mean that i should 've done it this way ?? CFLAGS=-I/usr/include CPPFLAGS=-I/usr/lib LDFLAGS=--static ./configure --prefix=./here if that's what you mean, I did't. I tried every thing. now I'm having the sam eproblem compiling dialog statically the same way. Does that help ?? I did this to make sure export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/usr/lib/:/usr/local/lib I'm still trying to figure out what's wrong. Any help is heighly appretiated Again thanx alot for your help.