LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2009, 11:26 AM   #1
hardhat
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
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.)
 
Old 07-25-2009, 03:16 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
You don't need to edit the Makefile, the configure script looks at environment variables, in particular
Code:
CXXFLAGS=-ffriend-injection ./configure
will put the option in the Makefile for you.
 
Old 07-25-2009, 05:08 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 !
.....
 
  


Reply

Tags
compile error



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
injection attacks rockymaxsource Linux - Security 5 07-13-2007 01:50 AM
Injection wolf39us Linux - Wireless Networking 6 06-27-2007 10:38 AM
SQL Injection inaki Linux - Security 6 06-04-2007 06:42 AM
packet injection help? JustinHoMi Linux - Security 1 02-05-2006 08:58 AM
sql injection inaki Linux - Security 8 12-22-2005 10:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration