Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-27-2004, 10:59 PM   #1
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Rep: Reputation: 30
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 .

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
Old 08-27-2004, 11:12 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
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
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

Last edited by foo_bar_foo; 08-27-2004 at 11:23 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
libXext error when running ./configure gepesz Linux - Software 2 05-26-2011 08:08 AM
What are LDFLAGS and AM_LDFLAGS!? wimnat Linux - Software 2 11-21-2005 05:08 AM
Need help running ./configure of sharpmusique signmeuptoo Linux - Software 1 10-06-2005 07:36 AM
C compiler when running configure mr_a_ali Linux - General 9 08-18-2004 08:29 AM
Errror running ./configure on apollon Toro Linux - Software 2 04-05-2004 09:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration