OK. Configure is failing. I didn't realize that that was where you are having problems. I believe the option for adding a path to the runtime search path is -rpath, not -rpath-link, and depending on whether the compiler or ld is used to link the program, you would have to specify it differently. However, when you're linking statically, there is no reason to specify a runtime search path. -Bstatic doesn't cause a problem here, because it doesn't mean the same thing. The -B option tell the compiler where to look for utilities like 'as' (the assembler), 'ld' (the linker), etc. So, what you are really telling the compiler with -Bstatic is to look in the directory "static" for the linker, assembler, etc. Not what you meant... So, your problem is that the test that configure uses to try to determine whether or not libnewt is there is failing. What you need to do is lookin the file config.log to see why that's failing. Basically, it will be the last thing in the log file (although, it may be before a bunch of informational junk printed at the end). Once you're tried to configure the program again (using -static instead of -Bstatic, and without the -rpath option), and it fails, look at the end of config.log and scroll back until you find where the test is failing and see what the actual error is there. Make sense? 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:59 PM To: gcc-help@xxxxxxxxxxx Subject: Re: LDFLAGS Ok Lyle Here 's the output: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% checking whether the C compiler (gcc -L/usr/include -static -rpath-link/usr/lib) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for newtInit in -lnewt... no configure: error: GNU nparted requires libnewt %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% and that's the command used this time: CFLAGS=-L/usr/include CPPFLAGS=-L/usr/lib LDFLAGS=" $LDFLAGS -static -rpath-link/usr/lib" ./configure --prefix=./here in my directory: /usr/lib/libnewt.a and libnewt.so.0.50.35 and their links. The interesting new thing is that when I use the flag -Bstatic the configure doesn't stop ( Funny . right ??) make runs and nothing wrong but that's what I get !!! How and why ?? That's the magic gcc: unrecognized option `-rpath-link/usr/lib' gcc: file path prefix `static' never used make[1]: Leaving directory `/home/mansour/nparted-0.1' and when I give space between like this -rpath-link /usr/lib the compiler can't generate excutables. :S Lyle I can't thank you enough for bearing with me. -- Mansour Al-Aqeel mansour77@xxxxxxxxxxx -- http://www.fastmail.fm - Email service worth paying for. Try it for free