diff options
author | 2018-08-31 23:12:40 +0200 | |
---|---|---|
committer | 2018-09-09 15:22:02 +0200 | |
commit | d2a065bc135f044b54f0c31890cc5218ab307dd7 (patch) | |
tree | 46228cf1d0d070ff7f4dc2ee66340f8395d03740 /package/e2fsprogs | |
parent | 64d4b3407376f9fc8bed1934a2c49ecd5d8838fb (diff) | |
download | buildroot-d2a065bc135f044b54f0c31890cc5218ab307dd7.tar.gz buildroot-d2a065bc135f044b54f0c31890cc5218ab307dd7.tar.bz2 |
e2fsprogs: simplify handling of ldconfig for target variant
e2fsprogs now has a proper autoconf check for ldconfig, so we can
simply pass the apropriate ac_cv_path_LDCONFIG variable at configure
time, and it gets used at build/install time without having to force
LDCONFIG=true at every step.
Since the E2FSPROGS_INSTALL_TARGET_OPTS become the default, we can get
rid of them entirely.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/e2fsprogs')
-rw-r--r-- | package/e2fsprogs/e2fsprogs.mk | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk index 659df8062e..98001c3c99 100644 --- a/package/e2fsprogs/e2fsprogs.mk +++ b/package/e2fsprogs/e2fsprogs.mk @@ -64,7 +64,9 @@ endif # the configure script (i.e with the cross-compiler). Help them by # saying that <sys/stat.h> is available on the host, which is needed # for util/subst.c to build properly. -E2FSPROGS_CONF_ENV += BUILD_CFLAGS="-DHAVE_SYS_STAT_H" +E2FSPROGS_CONF_ENV += \ + BUILD_CFLAGS="-DHAVE_SYS_STAT_H" \ + ac_cv_path_LDCONFIG=true # Disable use of the host magic.h, as on older hosts (e.g. RHEL 5) # it doesn't provide definitions expected by e2fsprogs support lib. @@ -73,18 +75,10 @@ HOST_E2FSPROGS_CONF_ENV += \ ac_cv_lib_magic_magic_file=no \ ac_cv_path_LDCONFIG=true -E2FSPROGS_MAKE_OPTS = LDCONFIG=true - E2FSPROGS_INSTALL_STAGING_OPTS = \ DESTDIR=$(STAGING_DIR) \ - LDCONFIG=true \ install-libs -E2FSPROGS_INSTALL_TARGET_OPTS = \ - DESTDIR=$(TARGET_DIR) \ - LDCONFIG=true \ - install - define HOST_E2FSPROGS_INSTALL_CMDS $(HOST_MAKE_ENV) $(MAKE) -C $(@D) install install-libs endef |