You are not logged in.
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
Maybe you are looking for /etc/makepkg.conf ? (for makepkg)
Offline
I know makepkg.conf, I am asking , Is there something similer for make?
Offline
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
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
Arch has it, for the packages you make in /etc/makepkg.conf DOH!
Offline
Gentoo has for portage but not for manually compiled packages - same as arch...
Offline
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
By the way does anybody know how to delete a post?
Offline
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
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