[asterisk-dev] Makefile/linking question

Vasil Kolev vasil at ludost.net
Wed Aug 29 08:52:33 CDT 2007


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++).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: =?UTF-8?Q?=D0=A2=D0=BE=D0=B2=D0=B0?=
	=?UTF-8?Q?_=D0=B5?= =?UTF-8?Q?_=D1=86=D0=B8=D1=84=D1=80=D0=BE=D0=B2=D0=BE?=
	=?UTF-8?Q?_=D0=BF=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B0?=
	=?UTF-8?Q?_=D1=87=D0=B0=D1=81=D1=82?= =?UTF-8?Q?_=D0=BE=D1=82?=
	=?UTF-8?Q?_=D0=BF=D0=B8=D1=81=D0=BC=D0=BE=D1=82=D0=BE?=
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20070829/c58125b7/attachment.pgp 


More information about the asterisk-dev mailing list