LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-27-2004, 09:59 PM   #1
Kilahchris
Member
 
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 .



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

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

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


Reply



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 07:08 AM
What are LDFLAGS and AM_LDFLAGS!? wimnat Linux - Software 2 11-21-2005 04:08 AM
Need help running ./configure of sharpmusique signmeuptoo Linux - Software 1 10-06-2005 06:36 AM
C compiler when running configure mr_a_ali Linux - General 9 08-18-2004 07:29 AM
Errror running ./configure on apollon Toro Linux - Software 2 04-05-2004 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 AM.

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