Solved

Changing CFLAGS when using ./configure script

Posted on 2001-07-06
6
355 Views
Last Modified: 2010-04-22

Ok, Im trying to compile SSH 3.0 on my FreeBSD on an Alpha server.

When I run the configure script everything is fine and my makefiles are created.

But the problem is when I compile with make.

It warn's me that the -O2 flag trigger some known optimiser bug.

So I would like to change the directive for it to use -O1 instead of -O2

I tried changing the CFLAGS shell variable, but it didn't work.
I also tried to change the CFLAGS directive in the top level MakeFile

but that didn't do eigther.

How can I tell make to use the -O1 flag instead of the -O2 flags when I run make?

Ps: If I try to compile using the -O2 flag, the systems panic and reboot.

Thanx
0
Comment
Question by:Lazypete
  • 3
  • 2
6 Comments
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 50 total points
Comment Utility
Look in the configure script for where it sets -O2.  You probably have to change it there.
0
 
LVL 1

Author Comment

by:Lazypete
Comment Utility
Hmmm... is there somekind of... better way that tempering with the
configure script.... there is almost 20 places where
it set the CFLAGS variable in the script...

There must be another way...
0
 
LVL 14

Expert Comment

by:chris_calabrese
Comment Utility
Well, the point of the configure script is that you're not supposed to have to know this stuff.  If there's a problem with your compiler, you need to change the configure script to detect the problematic compiler and change its behavior.  Then send the change back to the owner of the configure script.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 14

Expert Comment

by:chris_calabrese
Comment Utility
Or, if this is the commercial SSH you're using from F-Secure or SSH Communications, and they won't take the changes back, switch to OpenSSH where they will gladly take the changes back.
0
 
LVL 1

Expert Comment

by:Moondancer
Comment Utility
Have you been helped here so that you may award and close this or is more needed?

Thanks,

Moondancer
Community Support Moderator @ Experts Exchange
0
 
LVL 1

Author Comment

by:Lazypete
Comment Utility
well I finaly made it...
I tempered the file and I was able to compile it.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now