You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting custom install location independent from $PREFIX should be implemented. For example, I want make DESTDIR=/tmp/pkg PREFIX=/usr install to install libraries and headers to /tmp/pkg/usr, but write libdir and includedir entries to pkg-config files based only on $PREFIX (like $PREFIX/lib and $PREFIX/include, but not$DESTDIR/$PREFIX/whatever).
The main reason for it is packaging. When you are creating a package you often need to install the program or library to a temporary directory, which then will be archived and will go to the package. Simply setting PREFIX doesn't help because it will make pkg-config entries to look like this (incorrect): /path/to/pkgdir/usr/include instead of this (correct): /usr/include. You can see it in detail in this terminal transcript: https://gist.github.com/kodo-pp/482bef5afbece8bdb3c01bac461b1e03
The text was updated successfully, but these errors were encountered:
Setting custom install location independent from $PREFIX should be implemented. For example, I want
make DESTDIR=/tmp/pkg PREFIX=/usr install
to install libraries and headers to /tmp/pkg/usr, but writelibdir
andincludedir
entries to pkg-config files based only on $PREFIX (like$PREFIX/lib
and$PREFIX/include
, but not$DESTDIR/$PREFIX/whatever
).The main reason for it is packaging. When you are creating a package you often need to install the program or library to a temporary directory, which then will be archived and will go to the package. Simply setting PREFIX doesn't help because it will make pkg-config entries to look like this (incorrect):
/path/to/pkgdir/usr/include
instead of this (correct):/usr/include
. You can see it in detail in this terminal transcript: https://gist.github.com/kodo-pp/482bef5afbece8bdb3c01bac461b1e03The text was updated successfully, but these errors were encountered: