You are not logged in.

#1 2005-12-25 05:12:30

TPJ
Member
From: Gliwice, Poland
Registered: 2005-12-21
Posts: 33

Makepkg and CFLAGS

I'm looking for some convenient way to set CFLAGS while building packages with the makepkg. What I'd like to do is something like this:

$ makepkg --use-config=/path/to/a/config-file

Is it possible? I haven't found any options (in the makepkg manpage) that would make the makepkg to use another config file than the default /etc/makepkg.conf.

Offline

#2 2005-12-25 10:59:57

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Makepkg and CFLAGS

maybe you could use -j `cat /path/to/alternate/makeflags` ?

Offline

#3 2005-12-25 11:41:57

TPJ
Member
From: Gliwice, Poland
Registered: 2005-12-21
Posts: 33

Re: Makepkg and CFLAGS

According to the makepkg manpage the -j option may be used to override the MAKEFLAGS setting in /etc/makepkg.conf. This is only the partial solution of my problem - in fact, all I want to do is to change the CFLAGS setting in this file...

To be honest - the reason of my question (and of this topic) is something different. I belive I've found some solution, but it is quite complicated. Now I'm working on a script - it will be a kind of wrapper for the makepkg, that will allow its user to use as many different configuration files, as it will be needed. By creating this topic I just wanted to be sure, that I'm not trying to reinvent the wheel.

Offline

Board footer

Powered by FluxBB