[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stop search of regular paths?

From: Stian Skjelstad
Subject: Re: stop search of regular paths?
Date: Wed, 13 Mar 2019 08:39:08 +0100

On Tue, Mar 12, 2019 at 8:12 PM Patrick <address@hidden> wrote:
Hi Everyone

I am trying something weird. I have compiled ncurses with tcc but I want
to use tcc's cross compiling features. I want to control where configure
looks for libraries. I have what I want for now in my $PATH and this
PATH does not have the standard stuff like /usr/include etc

ncurses's configure seems to be finding libraries I don't want it to. I
used this:

alias tcc='arm-tcc -nostdinc -nostdlib'

I have tcc failing to find the standard libraries in the standard places
when I compile a "hello_word.c" program. This is what I want for now but
configure is finding them.

I tried ./configure --help but I didn't see the option to disable the
search of libraries in standard places. Can anyone tell me how to
disable this? Thanks for reading-Patrick

This is a generic answer, and not specific to ncurses configure, or other configure that searches for ncurses.

In general you can always tell the compiler toolchain via flags where to search for libraries and include-files when calling configure. (Some projects uses gcc for both compiling and linking)
CFLAGS="-I/the_wierd_path/include -L/the_wierd_path/include" CXXFLAGS="-I/the_wierd_path/include -L/the_wierd_path/include" CPPFLAGS="-I/the_wierd_path/include" LDFLAGS=-L/the_wierd_path/include"

For where configure searches for specific libraries is up the writer of the configure scripts, and its source macroes. Some uses generic macroes calling up pkg-config etc, so you might want to override the internals of that one too. They are listed in ./configure --help


reply via email to

[Prev in Thread] Current Thread [Next in Thread]