aclements / libelfin

C++11 ELF/DWARF parser
MIT License
314 stars 99 forks source link

Add DESTDIR support #42

Closed diabonas closed 4 years ago

diabonas commented 4 years ago

For packaging it is useful to be able to install to a custom temporary installation location. The existing PREFIX variable is not enough for this purpose because it will lead to incorrect pkg-config files (e.g. setting PREFIX="$pkgdir/usr" leads to includedir=$pkgdir/usr/include while it should be includedir=/usr/include instead). DESTDIR is the standard name for this variable, defined by the GNU coding standards.

Fixes: #35 Also see: Arch Linux FS#64881