Makefile: finding include/lib for libraries installed through macports
Posted
by Henk
on Stack Overflow
See other posts from Stack Overflow
or by Henk
Published on 2010-03-29T02:06:08Z
Indexed on
2010/03/29
2:13 UTC
Read the original article
Hit count: 376
Libraries/include files installed by macports go in /opt/local/lib
and /opt/local/include
, neither of which are scanned by gcc
/ld
by default. As a result, a project I'm working on won't compile in that environment.
Should this be fixed by manually adding -L/opt/local/lib
to my Makefile's LDFLAGS
(and -I
... as well), or is there some configuration that should be done to fix this globally on the computer?
© Stack Overflow or respective owner