LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack 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
Posts: 1,421

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
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: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,302

Rep: Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration