Compile/Link 101

Joshua Root jmr at macports.org
Sat Oct 5 11:59:23 PDT 2013


On 2013-10-6 00:53 , Craig Treleaven wrote:
> BTW, I realize I could set a -L flag in LDFLAGS but Myth includes
> modified versions of FFMPEG, dvdnav and a few other libraries.  The
> contents of LDFLAGS gets included early in the link line and therefore
> will try to link against any MacPorts-installed versions of these
> libraries. Not surprisingly, that never works out well.  ;)

This usually counts as a bug in the build system. The LDFLAGS from the
configure environment need to go after any -L flags for internal libs.
(Same deal for CPPFLAGS and -I flags for internal include dirs.)

- Josh


More information about the macports-dev mailing list