[PATCH] Allow to use live555 with other compilers than /usr/bin/g++
Hi! Following patch allows to use compilers given with --cc (cross compiler, intel compiler or different installed gcc's) to compile demux_rtp.cpp and demux_rtp_codec.cpp. Ok? Carl Eugen Index: configure =================================================================== --- configure (Revision 23501) +++ configure (Arbeitskopie) @@ -7454,6 +7454,7 @@ libdir = \$(LIBDIR) #AR = ar CC = $_cc +CXX = $_cc HOST_CC = $_host_cc RANLIB = $_ranlib LDCONFIG = $_ldconfig
On Fri, Jun 08, 2007 at 01:37:06AM +0200, Carl Eugen Hoyos wrote:
Following patch allows to use compilers given with --cc (cross compiler, intel compiler or different installed gcc's) to compile demux_rtp.cpp and demux_rtp_codec.cpp.
I think there should rather be an option --cxx or --c++, dunno what the usual default is. Can gcc compile C++ even when it is called as gcc and not g++? I have no experience with C++ ... Diego
Hi! Diego Biurrun <diego <at> biurrun.de> writes:
Following patch allows to use compilers given with --cc (cross compiler, intel compiler or different installed gcc's) to compile demux_rtp.cpp and demux_rtp_codec.cpp.
I think there should rather be an option --cxx or --c++, dunno what the usual default is. Can gcc compile C++ even when it is called as gcc and not g++?
Yes, both gcc and icc: The tests in configure already use cc. Allow me to point out that it's broken atm for every case if -cc is used, not just cross-compiling. Carl Eugen
On Fri, Jun 08, 2007 at 07:46:29AM +0000, Carl Eugen Hoyos wrote:
Diego Biurrun <diego <at> biurrun.de> writes:
Following patch allows to use compilers given with --cc (cross compiler, intel compiler or different installed gcc's) to compile demux_rtp.cpp and demux_rtp_codec.cpp.
I think there should rather be an option --cxx or --c++, dunno what the usual default is. Can gcc compile C++ even when it is called as gcc and not g++?
Yes, both gcc and icc: The tests in configure already use cc.
Allow me to point out that it's broken atm for every case if -cc is used, not just cross-compiling.
OK, then I'm fine with the patch. Diego
On Fri, Jun 08, 2007 at 07:46:29AM +0000, Carl Eugen Hoyos wrote:
Hi!
Diego Biurrun <diego <at> biurrun.de> writes:
Following patch allows to use compilers given with --cc (cross compiler, intel compiler or different installed gcc's) to compile demux_rtp.cpp and demux_rtp_codec.cpp.
I think there should rather be an option --cxx or --c++, dunno what the usual default is. Can gcc compile C++ even when it is called as gcc and not g++?
Yes, both gcc and icc: The tests in configure already use cc.
They may compile C++ code, but I thought they would add needed c++ libraries only if they were called with g++. http://www.delorie.com/djgpp/v2faq/faq8_8.html Bernd
Bernd Ernesti <mplayer-dev-eng <at> lists.veego.de> writes:
I think there should rather be an option --cxx or --c++, dunno what the usual default is. Can gcc compile C++ even when it is called as gcc and not g++?
Yes, both gcc and icc: The tests in configure already use cc.
They may compile C++ code, but I thought they would add needed c++ libraries only if they were called with g++.
This only concerns linking, which was and is done in mplayer with cc (or the given compiler) anyway, using -lstdcxx. What I changed is that now *.cpp are compiled with the same compiler as the rest of mplayer. Patch applied Carl Eugen
participants (3)
-
Bernd Ernesti -
Carl Eugen Hoyos -
Diego Biurrun