[asterisk-dev] Makefile/linking question
Russell Bryant
russell at digium.com
Wed Aug 29 10:57:33 CDT 2007
Vasil Kolev wrote:
> Hi,
> 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
> main/Makefile:145:
>
> $(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.
--
Russell Bryant
Software Engineer
Digium, Inc.
More information about the asterisk-dev
mailing list