[asterisk-dev] Makefile/linking question
russell at digium.com
Wed Aug 29 10:57:33 CDT 2007
Vasil Kolev wrote:
> We just noticed that in trunk and 1.4 the final linking of asterisk is
> done using CXX (g++), not CC (pure gcc). In trunk, it's in
> $(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $(H323LDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) $(H323LDLIBS)
> This creates a dependency on libstc++, which I see no point into - I'm
> not linking anything that's c++ (e.g. I have no H323). Shouldn't this be
> fixed not to link stuff that's not needed?
> I can try thinking up a patch for the issue, if it's only H323 related
> (the only thing I see in the tree that's C++).
This was apparently done to fix some issues regarding chan_h323.
See revision 81342 in 1.4 for a patch I just committed to make it use $(CC) if
chan_h323 is not being built and installed.
More information about the asterisk-dev