Solved

Changing CFLAGS when using ./configure script

Posted on 2001-07-06
6
357 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
ID: 6259640
Look in the configure script for where it sets -O2.  You probably have to change it there.
0
 
LVL 1

Author Comment

by:Lazypete
ID: 6259926
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
ID: 6259974
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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6259980
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
ID: 6471961
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
ID: 6471971
well I finaly made it...
I tempered the file and I was able to compile it.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Sparc Solaris hangs without crash dump & no events from messages 3 87
Parsing a file using ksh 10 72
Correct syntax to upload file in a script using sftp 2 90
MarkLogic 1 89
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

830 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