]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Run ldconfig before building.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Oct 2010 13:03:48 +0000 (15:03 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Oct 2010 13:03:48 +0000 (15:03 +0200)
pkgs/Functions

index ff64af3b9da3f8b445f6209f77c03c2c15c88c8b..42cfa80feecf325e3c62e675e2be19c81df4ce5b 100644 (file)
@@ -12,6 +12,11 @@ DO_PACKAGE_FILENAME = $(1)$(call DO_PKG_SUFFIX,$(1))
 DO_PKG_SUFFIX = \
        -$(if $(PKG_VER-$(1)),$(PKG_VER-$(1)),$(PKG_VER))-$(DISTRO_SNAME)$(DISTRO_EPOCH)-$(PKG_ARCH).$(if $(PKG_REL-$(1)),$(PKG_REL-$(1)),$(PKG_REL)).ipk
 
+define DO_INIT
+       # Run ldconfig
+       ldconfig
+endef
+
 define DO_PACKAGE
        @echo "#####################################################################"
        @echo "# $(1) - Package build started"
@@ -75,6 +80,9 @@ define DO_FIX_LIBTOOL
 endef
 
 define DO_PREPARE
+       # Initialize the environment at the beginning
+       $(DO_INIT)
+
        @echo "#####################################################################"
        @echo "# $(PKG_NAME) - Preparation started"
        @echo "#####################################################################"