[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 369
  • Last Modified:

Changing CFLAGS when using ./configure script


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
Lazypete
Asked:
Lazypete
  • 3
  • 2
1 Solution
 
chris_calabreseCommented:
Look in the configure script for where it sets -O2.  You probably have to change it there.
0
 
LazypeteAuthor Commented:
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
 
chris_calabreseCommented:
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
chris_calabreseCommented:
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
 
MoondancerCommented:
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
 
LazypeteAuthor Commented:
well I finaly made it...
I tempered the file and I was able to compile it.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now