diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-08 00:30:38 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-08 01:27:27 (EST) |
commit | 9ed4a97267bddd5f3e92fbb0dba4e4fd8b1c0060 (patch) | |
tree | 5c7a2f793cabb86481e770728647281dc5ba3dcf /build | |
parent | cd9f5d5289fc7830bc5eafc3e9a17aec402aef2f (diff) |
Install libraries and executables under / not /usr
BusyBox installs its versions of these executables under /, which really
makes more sense, for example in case /usr is on a different and
corrupted file system (/usr can't be checked if fsck is on /usr).
Diffstat (limited to 'build')
-rwxr-xr-x | build | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -7,6 +7,10 @@ nop: build: oh-autoconfigure -- \ + --prefix=/ \ + --includedir=/usr/include \ + --datarootdir=/usr/share \ + --mandir=/usr/share/man \ --enable-symlink-install \ --enable-verbose-makecmds \ --enable-elf-shlibs \ @@ -22,11 +26,16 @@ build: install: build oh-autoinstall - rm dest/usr/lib/$(OPK_HOST_ARCH)/*.a + rm dest/lib/$(OPK_HOST_ARCH)/*.a + # Put pkgconfig under /usr where it belongs: + mkdir -p dest/usr/lib/$(OPK_HOST_ARCH)/ + mv \ + dest/lib/$(OPK_HOST_ARCH)/pkgconfig/ \ + dest/usr/lib/$(OPK_HOST_ARCH)/ # Bash scripts and their configuration: rm dest/etc/e2scrub.conf - rm dest/usr/sbin/e2scrub - rm dest/usr/sbin/e2scrub_all + rm dest/sbin/e2scrub + rm dest/sbin/e2scrub_all oh-fixperms oh-strip oh-installfiles |