LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   CFLAGS and LDFLAGS question (https://www.linuxquestions.org/questions/linux-software-2/cflags-and-ldflags-question-681778/)

versaulis 11-07-2008 09:27 AM

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?

versaulis 11-07-2008 11:33 AM

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.


All times are GMT -5. The time now is 09:59 AM.