Ask Your Question
0

What is the correct way of detecting the $prefix/lib64 path in a build system

asked 2013-12-23 07:24:55 -0500

mildred gravatar image

updated 2015-11-10 22:35:20 -0500

mether gravatar image

I'd like to know what is the best way to detect that libraries should be installed in $prefix/lib64 instead of $prefix/lib (as it has always been the case).

If possible, I'd like something that would work for debian as well (installing in $prefix/lib/$arch-linux-gnu/)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-12-26 18:50:54 -0500

davidva gravatar image

updated 2013-12-26 19:45:43 -0500

Hi, very simple, the best macro for it:

%{_libdir}

enjoy ;)

More info: https://fedoraproject.org/wiki/Packaging:RPMMacros

Remember some developers think that there is only one architecture ... this is stupid

edit flag offensive delete link more

Comments

Thank you, but how to detect this outside of a rpmspec file. The goal of this question is to correctly detect the libdir in a Makefile. To this end, I'd use rpm --eval '%{_libdir}', but is there is a better way (possibly cross distro as well)

mildred gravatar imagemildred ( 2014-01-03 04:21:14 -0500 )edit

Question Tools

Stats

Asked: 2013-12-23 07:24:55 -0500

Seen: 163 times

Last updated: Dec 26 '13