g++ -ffriend-injection
I want to use the -ffriend-injection option for g++ 4.3.3 (for backward compatibility for source code that seems to depend on this deviation from the ISO standard).
Is there somewhere I can put this option (like an options file) that will cause g++ to use this option by default? I don't want to have to edit a bunch of make files - which I don't yet understand. (I'm trying to build TSE3-0.3.1 and g++ 4.3.3 has updated so the source code isn't compiling - citing ISO standards not being met. I posted my original issue here.) |
You don't need to edit the Makefile, the configure script looks at environment variables, in particular
Code:
CXXFLAGS=-ffriend-injection ./configure |
And you already know the patch [tse3_0.3.1-4.2.diff.gz]
from your other thread ? Also to be found here http://packages.ubuntu.com/intrepid/libtse3-dev > > " Links for libtse3-dev " : [tse3_0.3.1.orig.tar.gz], [tse3_0.3.1-4.2.diff.gz] patch -p0 < tse3_0.3.1-4.2.diff will do. The patch is 4,928 lines, and adding the line #include <cstring> to some 'files.cpp' is one of the changes made. ..... Compiling ( no errors ) with this patch will create files identic to the ones, you will get with the three packages available from Synaptic or with sudo apt-get install ..... ..... Good luck ! ..... |
All times are GMT -5. The time now is 09:15 AM. |