[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpmbuild command line override spec file %define



On May 22, 2006 9:29:36 AM +0200 Jos Vos <jos xos nl> wrote:
On Mon, May 22, 2006 at 08:51:46AM +0200, Christian Joensson wrote:

rpmbuild -ba /usr/src/redhat/SPECS/gcc34.spec --define 'build_ada 0'
--define 'build_java 0' --target=sparc64

or if something else is required?

You can not *override* defines that are also defined in the spec
file that way (like with Makefikes).

In Makefiles, you can override definitions.

$ cat Makefile
B = a
all:
	@echo $(B)
$ gmake
a
$ gmake B=b
b
$

-frank


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]