LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to use LDFLAGS while running ./configure (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-ldflags-while-running-configure-223322/)

Kilahchris 08-27-2004 09:59 PM

how to use LDFLAGS while running ./configure
 
how do i use LDFLAGS while running ./configure

when i type ./configure --help the man page only gives a brief explanation of it .



Quote:

CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
however when i try ./configure -L /name of directory i get an error
I even tried ./configure LDFLAGS -L /name of the directory

foo_bar_foo 08-27-2004 10:12 PM

you really don't use LDFLAGS with ./configure
./configure determines LDFLAGS by examining various config files for libraries and writes those flags to the Makefile
it May be possible to set some LDFLAGS by using
export LDFLAGS='-L/some/path'
then in the same shell
./configure
i'm not sure
you certainly can controll
CFLAGS that way

sometimes it's easy to just change the Makefile after configure has made it
if it's not working


All times are GMT -5. The time now is 10:13 AM.