LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-07-2008, 09:27 AM   #1
versaulis
Member
 
Registered: Sep 2003
Posts: 139

Rep: Reputation: 15
CFLAGS and LDFLAGS question


export CFLAGS="-I/lfs1/tools/include -I/lfs1/tools/include/linux -I/lfs1/usr/include -I/lfs1/usr/include/linux -I/lfs1/usr/local/include -I/lfs1/usr/local/include/linux -I/usr/include -I/usr/include/linux -I/usr/local/include -I/usr/local/include/linux"

export LDFLAGS="-L/lfs1/tools/lib -L/lfs1/lib -L/lfs1/usr/lib -L/lfs1/usr/local/lib -L/lib -L/usr/lib -L/usr/local/lib"


I'm using the above. I'm compiling a system into the /lfs1 folder, which is basically a Linux From Scratch system, except that it is not expected to be stand-alone and it may rely on the host system more. The goal is to be able to run newer software on a host system that is running somewhat older software.

My problem is that the software that I'm compiling can't find simple stuff like /lfs1/usr/include/string.h

Anyone know what my problem is? What am I doing wrong? Do I need to use other variables?
 
Old 11-07-2008, 11:33 AM   #2
versaulis
Member
 
Registered: Sep 2003
Posts: 139

Original Poster
Rep: Reputation: 15
Nevermind. I had lib paths in my PATH variable. Apparently, if you put /usr/lib in the front of your PATH, it causes dramatic problems.
 
  


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
What are LDFLAGS and AM_LDFLAGS!? wimnat Linux - Software 2 11-21-2005 04:08 AM
Binutils Pass 1 error make LDFLAGS="-all-static" Phyrexicaid Linux From Scratch 5 08-25-2005 10:43 AM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 03:01 AM
question on optimizing fedora 2 CFLAGS to speed up programs opioid Linux - Software 1 11-21-2004 09:58 AM
how to use LDFLAGS while running ./configure Kilahchris Linux - Newbie 1 08-27-2004 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:43 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