LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-15-2003, 07:58 PM   #1
asd
Registered User
 
Registered: Sep 2003
Location: asd
Distribution: ew
Posts: 4

Rep: Reputation: 0
Where to include cflags for make? (noob)


Where/how do I put my cflags so that ./configure sucks it up?
I just switched from Gentoo to Slack, and I dunno how to do this stuff. Is recompiling X with -mcpu=pentium3 cool? Trying to make a low latency audio box. Can't find a make.conf. My arch is also 486 where it should be 686.
 
Old 10-16-2003, 11:51 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Run ./configure like this:

$ CFLAGS="-g -O2" ./configure
$ make
 
Old 10-16-2003, 03:23 PM   #3
asd
Registered User
 
Registered: Sep 2003
Location: asd
Distribution: ew
Posts: 4

Original Poster
Rep: Reputation: 0
ok.

But isn't it possible with a global make.conf like Gentoo? Maybe I should read some Gentoo forums. The "march" thing doesnt matter; has something to do with "mtrr" I think, which configure sniffs. Mplayer's configure was really nice. Compiled itself with mmx/sse. But thanks anywho.
 
Old 10-16-2003, 05:33 PM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Re: ok.

Quote:
Originally posted by asd
But isn't it possible with a global make.conf like Gentoo?
Don't know anything about Gentoo, but if you want to make CFLAGS global, you could have a

export CFLAGS="-g -O2"

in /etc/profile.
 
  


Reply



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
DeMuDi noob - no make? How do I install other things? zekthedeadcow Debian 2 11-24-2005 09:52 PM
Noob trying to make a Linux network server. scooterx87 Linux - Newbie 5 08-21-2005 07:19 AM
Super noob question about make jimjamjahaa Linux - Newbie 3 03-10-2005 02:35 PM
make file to include libxml into your project alix123 Programming 3 12-10-2004 05:17 AM
PHP Question: how to make include(); depending on URL? linuxfond Programming 7 09-05-2003 09:15 AM

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

All times are GMT -5. The time now is 02:25 PM.

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