[Devel] build switches

Peter Nixon listuser at peternixon.net
Thu Feb 1 13:12:37 CET 2007


Hi Guys

Is there any chance of making the modules-dir build switch relative 
to "basedir" instead of relative to "prefix"?

Currently if the spec file I am forced to do:

make install basedir=%{buildroot} \
                prefix=%{_prefix} \
%ifarch x86_64
                modules-dir=/lib64/%{name}/modules/
%else
                modules-dir=/lib/%{name}/modules/
%endif


This could/should be replaced with the much nicer:

make install basedir=%{buildroot} \
                prefix=%{_prefix} \
                modules-dir=/%{_libdir}/%{name}/modules/

ie. RPM handles the 32/64 bit pathing for you...

Regards
-- 

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://openser.org/pipermail/devel/attachments/20070201/dfda05e7/attachment.pgp


More information about the Devel mailing list