You are not logged in.

#1 2006-07-04 14:43:15

EAD
Member
Registered: 2006-03-11
Posts: 255

is there something like makepkg.cfg for make?

Hii, I love the idea of flags like MACH=686 and so on, is there some thing that can be done to be a deafult for "make" ?
:?:

Offline

#2 2006-07-04 15:28:35

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: is there something like makepkg.cfg for make?

Maybe you are looking for /etc/makepkg.conf ? (for makepkg)

Offline

#3 2006-07-04 16:02:28

EAD
Member
Registered: 2006-03-11
Posts: 255

Re: is there something like makepkg.cfg for make?

I know makepkg.conf, I am asking , Is there something similer for make?

Offline

#4 2006-07-04 17:21:29

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: is there something like makepkg.cfg for make?

EAD wrote:

I know makepkg.conf, I am asking , Is there something similer for make?

I don't think so.
It's up to you to use CXXFLAGS in your makefiles

(you can for example define your CXXFLAGS in ~/.bashrc)

Offline

#5 2006-07-04 18:10:52

EAD
Member
Registered: 2006-03-11
Posts: 255

Re: is there something like makepkg.cfg for make?

sebcactus wrote:
EAD wrote:

I know makepkg.conf, I am asking , Is there something similer for make?

I don't think so.
It's up to you to use CXXFLAGS in your makefiles

(you can for example define your CXXFLAGS in ~/.bashrc)

How can I do it?
and why ARCH don't have this option?
Gentoo has  :shock:

Offline

#6 2006-07-04 18:21:30

stavrosg
Member
From: Rhodes, Greece
Registered: 2005-05-01
Posts: 330
Website

Re: is there something like makepkg.cfg for make?

Arch has it, for the packages you make in /etc/makepkg.conf roll DOH!

Offline

#7 2006-07-04 19:36:18

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: is there something like makepkg.cfg for make?

Gentoo has for portage but not for manually compiled packages - same as arch...

Offline

#8 2006-07-05 10:37:08

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: is there something like makepkg.cfg for make?

How can I do it?
and why ARCH don't have this option?
Gentoo has  :shock:

Gentoo has it only for packages that support CFLAGS/CXXFLAGS (as said above)

Just put this in your .bashrc :
export CFLAGS="-march=i686 -O2 -pipe"
export CXXFLAGS="-march=i686 -O2 -pipe"

And if the software you want to install uses the CFLAGS, it will use it.

But I do recommand to create a PKGBUILD and use makepkg!

Offline

#9 2006-07-05 10:38:37

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: is there something like makepkg.cfg for make?

By the way does anybody know how to delete a post?

Offline

#10 2006-07-05 11:07:59

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: is there something like makepkg.cfg for make?

Exactly as gentoo, arch allows to define this stuff in /etc/makepkg.conf for his own compilation environment (makepkg).
Exactly as any other linux system, arch allows to export environment variables for any process (including any 'make' using those variables) through /etc/profile, ~/.bashrc (or ~/.zshrc).


Mortuus in anima, curam gero cutis

Offline

#11 2006-07-05 21:28:08

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: is there something like makepkg.cfg for make?

I do remember a make configuration file. It isn't on your filesystem by default, but if you create it it'll use it. I think it was just called "/etc/make.cfg"

Offline

Board footer

Powered by FluxBB