Globally replace $(HOST_DIR)/usr/lib with $(HOST_DIR)/lib
authorArnout Vandecappelle <arnout@mind.be>
Wed, 5 Jul 2017 11:14:21 +0000 (13:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Jul 2017 13:20:05 +0000 (15:20 +0200)
Since things are no longer installed in $(HOST_DIR)/usr, the callers
should also not refer to it.

This is a mechanical change with
git grep -l '$(HOST_DIR)/usr/lib' | xargs sed -i 's%$(HOST_DIR)/usr/lib%$(HOST_DIR)/lib%g'

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
28 files changed:
boot/grub2/grub2.mk
package/4th/4th.mk
package/Makefile.in
package/acl/acl.mk
package/efl/efl.mk
package/ejabberd/ejabberd.mk
package/execline/execline.mk
package/gdk-pixbuf/gdk-pixbuf.mk
package/go-bootstrap/go-bootstrap.mk
package/go/go.mk
package/gtest/gtest.mk
package/heimdal/heimdal.mk
package/leafnode2/leafnode2.mk
package/libselinux/libselinux.mk
package/libsemanage/libsemanage.mk
package/libsepol/libsepol.mk
package/libxml-parser-perl/libxml-parser-perl.mk
package/lua/lua.mk
package/mfgtools/mfgtools.mk
package/mono/mono.mk
package/monolite/monolite.mk
package/owfs/owfs.mk
package/pseudo/pseudo.mk
package/python-cffi/python-cffi.mk
package/s6-rc/s6-rc.mk
package/s6/s6.mk
package/scons/scons.mk
package/setools/setools.mk

index 163b8a58a608e6c7f5b1b2ebfbad5319f68e82ff..5082ececdd6b8b088da4b50646d187cf2f47291a 100644 (file)
@@ -79,7 +79,7 @@ GRUB2_INSTALL_TARGET_OPTS = DESTDIR=$(HOST_DIR) install
 
 ifeq ($(BR2_TARGET_GRUB2_I386_PC),y)
 define GRUB2_IMAGE_INSTALL_ELTORITO
-       cat $(HOST_DIR)/usr/lib/grub/$(GRUB2_TUPLE)/cdboot.img $(GRUB2_IMAGE) > \
+       cat $(HOST_DIR)/lib/grub/$(GRUB2_TUPLE)/cdboot.img $(GRUB2_IMAGE) > \
                $(BINARIES_DIR)/grub-eltorito.img
 endef
 endif
@@ -87,7 +87,7 @@ endif
 define GRUB2_IMAGE_INSTALLATION
        mkdir -p $(dir $(GRUB2_IMAGE))
        $(HOST_DIR)/bin/grub-mkimage \
-               -d $(HOST_DIR)/usr/lib/grub/$(GRUB2_TUPLE) \
+               -d $(HOST_DIR)/lib/grub/$(GRUB2_TUPLE) \
                -O $(GRUB2_TUPLE) \
                -o $(GRUB2_IMAGE) \
                -p "$(GRUB2_PREFIX)" \
index 9f8969a181e3a81402f9e43b450d90c4235f26c6..f272e02808b59f80303cccd8a6410b37f00c4126 100644 (file)
@@ -60,10 +60,10 @@ endef
 
 define HOST_4TH_INSTALL_CMDS
        mkdir -p $(HOST_DIR)/bin
-       mkdir -p $(HOST_DIR)/usr/lib
+       mkdir -p $(HOST_DIR)/lib
        $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/sources mostlyinstall \
                BINARIES=$(HOST_DIR)/bin \
-               LIBRARIES=$(HOST_DIR)/usr/lib
+               LIBRARIES=$(HOST_DIR)/lib
 endef
 
 $(eval $(generic-package))
index 31b37a9deb0ebc184f0ae9582da4d4e1d34fc4c0..4fe560f68e41e9aa9e368f73b441e6ac7ff6ed71 100644 (file)
@@ -229,9 +229,9 @@ HOST_LDFLAGS  += -L$(HOST_DIR)/lib -Wl,-rpath,$(HOST_DIR)/lib
 export PERL=$(shell which perl)
 
 # host-intltool needs libxml-parser-perl, which Buildroot installs in
-# $(HOST_DIR)/usr/lib/perl, so we must make sure that the system perl
+# $(HOST_DIR)/lib/perl, so we must make sure that the system perl
 # finds this perl module by exporting the proper value for PERL5LIB.
-export PERL5LIB=$(HOST_DIR)/usr/lib/perl
+export PERL5LIB=$(HOST_DIR)/lib/perl
 
 TARGET_MAKE_ENV = PATH=$(BR_PATH)
 
@@ -282,7 +282,7 @@ HOST_MAKE_ENV = \
        PKG_CONFIG_SYSROOT_DIR="/" \
        PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
        PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
-       PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig:$(HOST_DIR)/usr/share/pkgconfig"
+       PKG_CONFIG_LIBDIR="$(HOST_DIR)/lib/pkgconfig:$(HOST_DIR)/usr/share/pkgconfig"
 
 HOST_CONFIGURE_OPTS = \
        $(HOST_MAKE_ENV) \
index 9e57d091311cf4375e38b511b58feed1ad2ce28f..4d30059390c7ea4029ed8b3518fbb74e431897cb 100644 (file)
@@ -49,7 +49,7 @@ HOST_ACL_MAKE_ENV = CFLAGS="$(HOST_CFLAGS)"
 HOST_ACL_INSTALL_OPTS = \
        prefix=$(HOST_DIR) \
        exec_prefix=$(HOST_DIR) \
-       PKG_DEVLIB_DIR=$(HOST_DIR)/usr/lib \
+       PKG_DEVLIB_DIR=$(HOST_DIR)/lib \
        install-dev install-lib
 # For the host, libacl.la is correct, no fixup needed.
 
index fcf2560680b434ed43c4baaa4639683d95361dae..9cbbabb1ef965f97c4ea25139f5951711f49a9ac 100644 (file)
@@ -388,7 +388,7 @@ endif
 # system bus which is non-existent and does not contain
 # any upower service in it.
 define HOST_EFL_HOOK_REMOVE_UPOWER
-       rm -fr $(HOST_DIR)/usr/lib/ecore/system/upower
+       rm -fr $(HOST_DIR)/lib/ecore/system/upower
 endef
 HOST_EFL_POST_INSTALL_HOOKS = HOST_EFL_HOOK_REMOVE_UPOWER
 
index a835bc454997270a1ff663700ad1a3f3748a395d..9baa1124a36254718d5f90ebae7fe7df38f4ea81 100644 (file)
@@ -28,7 +28,7 @@ EJABBERD_ERLANG_LIBS = sasl crypto public_key ssl mnesia inets compiler
 # Guess answers for these tests, configure will bail out otherwise
 # saying error: cannot run test program while cross compiling.
 EJABBERD_CONF_ENV = \
-       ac_cv_erlang_root_dir="$(HOST_DIR)/usr/lib/erlang" \
+       ac_cv_erlang_root_dir="$(HOST_DIR)/lib/erlang" \
        $(foreach lib,$(EJABBERD_ERLANG_LIBS), \
                ac_cv_erlang_lib_dir_$(lib)="`package/ejabberd/check-erlang-lib $(lib)`")
 
index 86ed3f2d86c375b824aaea45e72e1d2a1dcc3ae4..619f4932adc1f094ab7e1141d9a1586db722cb94 100644 (file)
@@ -47,9 +47,9 @@ HOST_EXECLINE_DEPENDENCIES = host-skalibs
 HOST_EXECLINE_CONF_OPTS = \
        --prefix=$(HOST_DIR) \
        --shebangdir=/usr/bin \
-       --with-sysdeps=$(HOST_DIR)/usr/lib/skalibs/sysdeps \
+       --with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
        --with-include=$(HOST_DIR)/usr/include \
-       --with-dynlib=$(HOST_DIR)/usr/lib \
+       --with-dynlib=$(HOST_DIR)/lib \
        --disable-static \
        --enable-shared \
        --disable-allstatic
index 688688316bfcebc3772f8c889a3c3bab5d88544e..ac92e23c1846733eba6060f1fb65bac72c4eea74 100644 (file)
@@ -58,7 +58,7 @@ endif
 # need to sanitize (strip) them.
 ifeq ($(BR2_STATIC_LIBS),)
 define GDK_PIXBUF_UPDATE_CACHE
-       GDK_PIXBUF_MODULEDIR=$(HOST_DIR)/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders \
+       GDK_PIXBUF_MODULEDIR=$(HOST_DIR)/lib/gdk-pixbuf-2.0/2.10.0/loaders \
                $(HOST_DIR)/bin/gdk-pixbuf-query-loaders \
                > $(TARGET_DIR)/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
        $(SED) "s,$(HOST_DIR),,g" \
@@ -77,7 +77,7 @@ GDK_PIXBUF_POST_PATCH_HOOKS += GDK_PIXBUF_DISABLE_TESTS
 # thumbnailer. Use the host-built since it matches the target options
 # regarding mime types (which is the used information).
 define GDK_PIXBUF_COPY_LOADERS_CACHE
-       cp -f $(HOST_DIR)/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
+       cp -f $(HOST_DIR)/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
                $(@D)/gdk-pixbuf
 endef
 GDK_PIXBUF_PRE_BUILD_HOOKS += GDK_PIXBUF_COPY_LOADERS_CACHE
index 28a113ec895dc18e34bd0216241523751a46a3ff..6710e31561c9fdd84d89a01e27eed6ef7e8666ab 100644 (file)
@@ -17,7 +17,7 @@ GO_BOOTSTRAP_LICENSE_FILES = LICENSE
 # host-go-bootstrap.
 HOST_GO_BOOTSTRAP_DEPENDENCIES = toolchain
 
-HOST_GO_BOOTSTRAP_ROOT = $(HOST_DIR)/usr/lib/go-$(GO_BOOTSTRAP_VERSION)
+HOST_GO_BOOTSTRAP_ROOT = $(HOST_DIR)/lib/go-$(GO_BOOTSTRAP_VERSION)
 
 # The go build system is not compatable with ccache, so use HOSTCC_NOCCACHE
 # here.  See https://github.com/golang/go/issues/11685.
index 27e007312fea33f5c0d4472a439124a5018cadf1..0781dff035bd4f5f4933cfa30a4c52b24cf93016 100644 (file)
@@ -37,7 +37,7 @@ GO_GOARCH = mips64le
 endif
 
 HOST_GO_DEPENDENCIES = host-go-bootstrap
-HOST_GO_ROOT = $(HOST_DIR)/usr/lib/go
+HOST_GO_ROOT = $(HOST_DIR)/lib/go
 
 # For the convienience of target packages.
 HOST_GO_TOOLDIR = $(HOST_GO_ROOT)/pkg/tool/linux_$(GO_GOARCH)
index 36441be3ad8e359ef2ea98f323fd56a566acd871..b62ceb32709443d6ab9702e092ddd4c3306e41d6 100644 (file)
@@ -26,7 +26,7 @@ HOST_GTEST_DEPENDENCIES += host-python
 endif
 
 HOST_GTEST_GMOCK_PYTHONPATH = \
-       $(HOST_DIR)/usr/lib/python$(HOST_GTEST_PYTHON_VERSION)/site-packages
+       $(HOST_DIR)/lib/python$(HOST_GTEST_PYTHON_VERSION)/site-packages
 
 # While it is possible to build gtest as shared library, using this gtest shared
 # library requires to set some special configure option in the project using
index 165874083968043a284f4530ff07af6d0e51f434..5af7926854345cdb75da5703ba84cad9ce1e3392 100644 (file)
@@ -30,10 +30,10 @@ HEIMDAL_LICENSE_FILES = LICENSE
 
 # We need asn1_compile in the PATH for samba4
 define HOST_HEIMDAL_MAKE_SYMLINK
-       ln -sf $(HOST_DIR)/usr/libexec/heimdal/asn1_compile \
+       ln -sf $(HOST_DIR)/libexec/heimdal/asn1_compile \
                $(HOST_DIR)/bin/asn1_compile
        ln -sf $(HOST_DIR)/bin/compile_et \
-               $(HOST_DIR)/usr/libexec/heimdal/compile_et
+               $(HOST_DIR)/libexec/heimdal/compile_et
 endef
 
 HOST_HEIMDAL_POST_INSTALL_HOOKS += HOST_HEIMDAL_MAKE_SYMLINK
index 4a920ccf925c4d6839320d94a2c3804e6cd979a3..7efe9445ad09cca492057a78e06be44e223db148 100644 (file)
@@ -31,7 +31,7 @@ define LEAFNODE2_BUILD_SORTNL_TOOL
        $(HOSTCC) $(HOST_CFLAGS) -o b_sortnl_host \
                arc4random.c mergesort.c b_sortnl.c critmem_malloc.c \
                critmem_realloc.c -DHAVE_CONFIG_H -I$(HOST_DIR)/usr/include \
-               -L $(HOST_DIR)/usr/lib -Wl,-rpath,$(HOST_DIR)/usr/lib -lpcre
+               -L $(HOST_DIR)/lib -Wl,-rpath,$(HOST_DIR)/lib -lpcre
 endef
 
 LEAFNODE2_PRE_BUILD_HOOKS += LEAFNODE2_BUILD_SORTNL_TOOL
index 6362792201784419c4d6793d19064164d05bbca8..d0aadf38927073577bad9122035dccf5f108f99e 100644 (file)
@@ -89,7 +89,7 @@ HOST_LIBSELINUX_MAKE_OPTS = \
        $(HOST_CONFIGURE_OPTS) \
        LDFLAGS="$(HOST_LDFLAGS) -lpcre -lpthread" \
        PYINC="$(HOST_LIBSELINUX_PYINC)" \
-       PYSITEDIR="$(HOST_DIR)/usr/lib/$(HOST_LIBSELINUX_PYLIBVER)/site-packages" \
+       PYSITEDIR="$(HOST_DIR)/lib/$(HOST_LIBSELINUX_PYLIBVER)/site-packages" \
        SWIG_LIB="$(HOST_DIR)/usr/share/swig/$(SWIG_VERSION)/"
 
 define HOST_LIBSELINUX_BUILD_CMDS
@@ -97,7 +97,7 @@ define HOST_LIBSELINUX_BUILD_CMDS
        # header paths.
        $(HOST_MAKE_ENV) $(MAKE1) -C $(@D) \
                $(HOST_LIBSELINUX_MAKE_OPTS) DESTDIR=$(HOST_DIR) \
-               SHLIBDIR=$(HOST_DIR)/usr/lib all
+               SHLIBDIR=$(HOST_DIR)/lib all
        # Generate python interface wrapper
        $(HOST_MAKE_ENV) $(MAKE1) -C $(@D) \
                $(HOST_LIBSELINUX_MAKE_OPTS) DESTDIR=$(HOST_DIR) swigify pywrap
@@ -106,8 +106,8 @@ endef
 define HOST_LIBSELINUX_INSTALL_CMDS
        $(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
                $(HOST_LIBSELINUX_MAKE_OPTS) DESTDIR=$(HOST_DIR) \
-               SHLIBDIR=$(HOST_DIR)/usr/lib SBINDIR=$(HOST_DIR)/sbin install
-       (cd $(HOST_DIR)/usr/lib; $(HOSTLN) -sf libselinux.so.1 libselinux.so)
+               SHLIBDIR=$(HOST_DIR)/lib SBINDIR=$(HOST_DIR)/sbin install
+       (cd $(HOST_DIR)/lib; $(HOSTLN) -sf libselinux.so.1 libselinux.so)
        # Install python interface wrapper
        $(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
                $(HOST_LIBSELINUX_MAKE_OPTS) DESTDIR=$(HOST_DIR) install-pywrap
index c9f0f57f6f43cd17238fdf94e6f3302e59b3a529..15bc664bd365696ccefdd22583ae5d7031044070 100644 (file)
@@ -36,13 +36,13 @@ ifeq ($(BR2_PACKAGE_PYTHON3),y)
 HOST_LIBSEMANAGE_DEPENDENCIES += host-python3
 HOST_LIBSEMANAGE_MAKE_OPTS += \
        PYINC="-I$(HOST_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)m/" \
-       PYTHONLIBDIR="-L$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/" \
+       PYTHONLIBDIR="-L$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/" \
        PYLIBVER="python$(PYTHON3_VERSION_MAJOR)"
 else
 HOST_LIBSEMANAGE_DEPENDENCIES += host-python
 HOST_LIBSEMANAGE_MAKE_OPTS += \
        PYINC="-I$(HOST_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/" \
-       PYTHONLIBDIR="-L$(HOST_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/" \
+       PYTHONLIBDIR="-L$(HOST_DIR)/lib/python$(PYTHON_VERSION_MAJOR)/" \
        PYLIBVER="python$(PYTHON_VERSION_MAJOR)"
 endif
 
index 233334eea24923682d3772f846948f5f950f5bdd..710ab251126402029604541a85da07a84916e4c5 100644 (file)
@@ -44,7 +44,7 @@ endef
 
 define HOST_LIBSEPOL_INSTALL_CMDS
        $(HOST_LIBSEPOL_MAKE_ENV) $(MAKE) -C $(@D) install $(HOST_CONFIGURE_OPTS)
-       ln -sf libsepol.so.1 $(HOST_DIR)/usr/lib/libsepol.so
+       ln -sf libsepol.so.1 $(HOST_DIR)/lib/libsepol.so
 endef
 
 $(eval $(generic-package))
index bca1c34a8f36e02f8f3f052cae48e719c134a75b..08bc8bb59f338cc7e7d73c4de13d86668a10a2e6 100644 (file)
@@ -15,11 +15,11 @@ define HOST_LIBXML_PARSER_PERL_CONFIGURE_CMDS
        (cd $(@D) ; \
                $(HOST_CONFIGURE_OPTS) $(LIBXML_PARSER_PERL_RUN_PERL) Makefile.PL \
                        PREFIX=$(HOST_DIR) \
-                       EXPATLIBPATH=$(HOST_DIR)/usr/lib \
+                       EXPATLIBPATH=$(HOST_DIR)/lib \
                        EXPATINCPATH=$(HOST_DIR)/usr/include \
                        INSTALLDIRS=site \
-                       INSTALLSITELIB=$(HOST_DIR)/usr/lib/perl \
-                       INSTALLSITEARCH=$(HOST_DIR)/usr/lib/perl \
+                       INSTALLSITELIB=$(HOST_DIR)/lib/perl \
+                       INSTALLSITEARCH=$(HOST_DIR)/lib/perl \
        )
 endef
 
index bc0a9d456b9cd7ee185c0b08dde63039167cd959..5810b5fa726fcfbc1cdb6e67d2279189eaa232ab 100644 (file)
@@ -97,7 +97,7 @@ endef
 define HOST_LUA_INSTALL_CMDS
        $(HOST_MAKE_ENV) $(MAKE) INSTALL_TOP="$(HOST_DIR)/usr" -C $(@D) install
        $(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
-               $(HOST_DIR)/usr/lib/pkgconfig/lua.pc
+               $(HOST_DIR)/lib/pkgconfig/lua.pc
 endef
 
 $(eval $(generic-package))
index e37c4dc7196677b549105bad0652ec4431e4ee0b..1afd47b13f677fdf6c75faa565d32642849cfe70 100644 (file)
@@ -26,7 +26,7 @@ HOST_MFGTOOLS_POST_BUILD_HOOKS += HOST_MFGTOOLS_CLI_BUILD
 
 define HOST_MFGTOOLS_INSTALL_CMDS
        $(INSTALL) -D -m 755 $(@D)/MfgToolLib/libMfgToolLib.so \
-               $(HOST_DIR)/usr/lib/libMfgToolLib.so
+               $(HOST_DIR)/lib/libMfgToolLib.so
        $(INSTALL) -D -m 755 $(@D)/TestPrgm/mfgtoolcli \
                $(HOST_DIR)/bin/mfgtoolcli
 endef
index 0fafc974d4d1d055acb0d4cecdfe0193cb5597be..ec7e14e9af0f372cc1fa3cbf9264096b04d5c413 100644 (file)
@@ -29,7 +29,7 @@ MONO_CONF_OPTS = --with-mcs-docs=no \
 # architecture-independent, we simply copy them to the target.
 define MONO_INSTALL_LIBS
        rsync -av --exclude=*.so --exclude=*.mdb \
-               $(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
+               $(HOST_DIR)/lib/mono $(TARGET_DIR)/usr/lib/
 endef
 
 MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS
@@ -56,7 +56,7 @@ HOST_MONO_DEPENDENCIES = host-monolite host-gettext
 
 define HOST_MONO_SETUP_MONOLITE
        rm -rf $(@D)/mcs/class/lib/monolite
-       (cd $(@D)/mcs/class/lib; ln -s $(HOST_DIR)/usr/lib/monolite monolite)
+       (cd $(@D)/mcs/class/lib; ln -s $(HOST_DIR)/lib/monolite monolite)
 endef
 
 HOST_MONO_POST_CONFIGURE_HOOKS += HOST_MONO_SETUP_MONOLITE
index 73f235225bf3dfc07a63204d4a69cf396550a507..53178989603be046f84f74c5b876b329419c7d24 100644 (file)
@@ -10,8 +10,8 @@ MONOLITE_SOURCE = monolite-$(MONOLITE_VERSION)-latest.tar.gz
 MONOLITE_LICENSE = LGPL-2.0 or commercial
 
 define HOST_MONOLITE_INSTALL_CMDS
-       mkdir -p $(HOST_DIR)/usr/lib/monolite
-       cp $(@D)/* $(HOST_DIR)/usr/lib/monolite
+       mkdir -p $(HOST_DIR)/lib/monolite
+       cp $(@D)/* $(HOST_DIR)/lib/monolite
 endef
 
 $(eval $(host-generic-package))
index ee37a3055896ec340536c2bf13200fc3a4fea29f..dceb6b6b5cab484478766df2575b72c123405092 100644 (file)
@@ -68,7 +68,7 @@ OWFS_MAKE_ENV += \
 OWFS_DEPENDENCIES += python host-swig
 # The configure scripts finds PYSITEDIR as the python_lib directory of
 # host-python, and then prepends DESTDIR in front of it. So we end up
-# installing things in $(TARGET_DIR)/$(HOST_DIR)/usr/lib/python which is
+# installing things in $(TARGET_DIR)/$(HOST_DIR)/lib/python which is
 # clearly wrong.
 # Patching owfs to do the right thing is not trivial, it's much easier to
 # override the PYSITEDIR variable in make.
index 7a48cec7dadb28e86bbab537bd537095a9b298ab..d78fc7aa8aea0e9cd37a69830eae54574d9218bd 100644 (file)
@@ -21,9 +21,9 @@ HOST_PSEUDO_DEPENDENCIES = host-attr host-sqlite
 # a warning at configure time.
 HOST_PSEUDO_CONF_OPTS = \
        --cflags="$(HOSTCFLAGS)" \
-       --with-rpath=$(HOST_DIR)/usr/lib \
+       --with-rpath=$(HOST_DIR)/lib \
        --bits=$(if $(filter %64,$(HOSTARCH)),64,32) \
-       --libdir=$(HOST_DIR)/usr/lib \
+       --libdir=$(HOST_DIR)/lib \
        --with-sqlite=$(HOST_DIR)/usr
 
 $(eval $(host-autotools-package))
index 6f4ba3ba08895e891564f4508f5674b913d38f45..723d87cb97cd0de3cfe0663f61323acc549c6f68 100644 (file)
@@ -20,7 +20,7 @@ HOST_PYTHON_CFFI_ENV = \
        PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
        PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
        PKG_CONFIG_SYSROOT_DIR="/" \
-       PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig:$(HOST_DIR)/usr/share/pkgconfig"
+       PKG_CONFIG_LIBDIR="$(HOST_DIR)/lib/pkgconfig:$(HOST_DIR)/usr/share/pkgconfig"
 HOST_PYTHON_CFFI_DEPENDENCIES = host-pkgconf host-python-pycparser host-libffi
 
 $(eval $(python-package))
index f8addd22cb099d129080bb3845d3dd229aff1ddf..9e8e566f9b435df5b753cbae97397e7a36071376 100644 (file)
@@ -49,9 +49,9 @@ HOST_S6_RC_DEPENDENCIES = host-s6
 HOST_S6_RC_CONF_OPTS = \
        --prefix=$(HOST_DIR) \
        --libexecdir=/usr/libexec \
-       --with-sysdeps=$(HOST_DIR)/usr/lib/skalibs/sysdeps \
+       --with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
        --with-include=$(HOST_DIR)/usr/include \
-       --with-dynlib=$(HOST_DIR)/usr/lib \
+       --with-dynlib=$(HOST_DIR)/lib \
        --disable-static \
        --enable-shared \
        --disable-allstatic
index 411345781df2af4c915afc3583b9a05632510770..e6b024a968c3cb0d756597eeca36d08a71560248 100644 (file)
@@ -47,9 +47,9 @@ HOST_S6_DEPENDENCIES = host-execline
 
 HOST_S6_CONF_OPTS = \
        --prefix=$(HOST_DIR) \
-       --with-sysdeps=$(HOST_DIR)/usr/lib/skalibs/sysdeps \
+       --with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
        --with-include=$(HOST_DIR)/usr/include \
-       --with-dynlib=$(HOST_DIR)/usr/lib \
+       --with-dynlib=$(HOST_DIR)/lib \
        --disable-static \
        --enable-shared \
        --disable-allstatic
index 8e1e8a99f2eb6f65354bc9262d8888bb507dff36..c56526c83c67bce0935990804cfdb8940b11689f 100644 (file)
@@ -13,7 +13,7 @@ SCONS_SETUP_TYPE = distutils
 HOST_SCONS_NEEDS_HOST_PYTHON = python2
 
 HOST_SCONS_INSTALL_OPTS = \
-       --install-lib=$(HOST_DIR)/usr/lib/scons-$(SCONS_VERSION)
+       --install-lib=$(HOST_DIR)/lib/scons-$(SCONS_VERSION)
 
 $(eval $(host-python-package))
 
index 9aa74d5e654ddfe656edc92b2bdf2ddd5e0a5b38..960e5be92170cf96d5cd771c7a2b0f5db14a192e 100644 (file)
@@ -48,7 +48,7 @@ HOST_SETOOLS_DEPENDENCIES += host-python
 HOST_SETOOLS_CONF_ENV += am_cv_python_version=$(PYTHON_VERSION)
 endif
 
-HOST_SETOOLS_PYTHON_SITE_PACKAGES = $(HOST_DIR)/usr/lib/python$(HOST_SETOOLS_PYTHON_VERSION)/site-packages
+HOST_SETOOLS_PYTHON_SITE_PACKAGES = $(HOST_DIR)/lib/python$(HOST_SETOOLS_PYTHON_VERSION)/site-packages
 HOST_SETOOLS_PYTHON_INCLUDES = $(HOST_DIR)/usr/include/python$(HOST_SETOOLS_PYTHON_VERSION)
 HOST_SETOOLS_PYTHON_LIB = -lpython$(HOST_SETOOLS_PYTHON_VERSION)
 
@@ -66,7 +66,7 @@ HOST_SETOOLS_CONF_OPTS = \
        --disable-swig-tcl \
        --with-sepol-devel="$(HOST_DIR)/usr" \
        --with-selinux-devel="$(HOST_DIR)/usr" \
-       PYTHON_LDFLAGS="-L$(HOST_DIR)/usr/lib/" \
+       PYTHON_LDFLAGS="-L$(HOST_DIR)/lib/" \
        PYTHON_CPPFLAGS="-I$(HOST_SETOOLS_PYTHON_INCLUDES)" \
        PYTHON_SITE_PKG="$(HOST_SETOOLS_PYTHON_SITE_PACKAGES)" \
        PYTHON_EXTRA_LIBS="-lpthread -ldl -lutil $(HOST_SETOOLS_PYTHON_LIB)"