howto use /usr/include/iconv.h
walt
wa1ter at myrealbox.com
Fri Jan 25 10:27:48 PST 2008
Johannes Hofmann wrote:
Hello,
what is the correct way to use iconv.h from /usr/include instead of
/usr/pkg/include ?
As soon as I add -I/usr/pkg/include iconv.h is used from there.
Even adding -I/usr/include doesn't help.
On the other hand I need -I/usr/pkg/include e.g. for jpeglib.h.
I assume you are talking about pkgsrc? The pkgsrc build system
creates symlinks to every header file in the work/.buildlink/include
subdirectory, and does the same for libraries in .buildlink/lib.
Any time you get a missing header file or missing library error, you
need to look in the .buildlink directory to correct the problem. Most
of the time it will be a missing symlink. All those symlinks are made
by the 'bmake wrapper' target, which is done automatically during the
build.
The symlinks are generated (somehow) from the collection of buildlink3.mk
files mentioned in the master Makefile or in the top directory.
Lots of docs in pkgsrc/doc to make you dizzy :o)
More information about the Users
mailing list