diff options
Diffstat (limited to 'docs/manual/adding-packages-autotools.txt')
-rw-r--r-- | docs/manual/adding-packages-autotools.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/manual/adding-packages-autotools.txt b/docs/manual/adding-packages-autotools.txt index 1184b6996..84d76f929 100644 --- a/docs/manual/adding-packages-autotools.txt +++ b/docs/manual/adding-packages-autotools.txt @@ -21,8 +21,8 @@ package, with an example : 07: LIBFOO_SOURCE = libfoo-$(LIBFOO_VERSION).tar.gz 08: LIBFOO_SITE = http://www.foosoftware.org/download 09: LIBFOO_INSTALL_STAGING = YES -10: LIBFOO_INSTALL_TARGET = YES -11: LIBFOO_CONF_OPT = --enable-shared +10: LIBFOO_INSTALL_TARGET = NO +11: LIBFOO_CONF_OPT = --disable-shared 12: LIBFOO_DEPENDENCIES = libglib2 host-pkgconf 13: 14: $(eval $(autotools-package)) @@ -44,13 +44,13 @@ other libraries or applications depending on them. Also by default, when staging installation is enabled, packages are installed in this location using the +make install+ command. -On line 10, we tell Buildroot to also install the package to the +On line 10, we tell Buildroot to not install the package to the target directory. This directory contains what will become the root -filesystem running on the target. Usually, we try not to install header -files and to install stripped versions of the binary. By default, target -installation is enabled, so in fact, this line is not strictly -necessary. Also by default, packages are installed in this location -using the +make install+ command. +filesystem running on the target. For purely static libraries, it is +not necessary to install them in the target directory because they will +not be used at runtime. By default, target installation is enabled; setting +this variable to NO is almost never needed. Also by default, packages are +installed in this location using the +make install+ command. On line 11, we tell Buildroot to pass a custom configure option, that will be passed to the +./configure+ script before configuring @@ -133,13 +133,13 @@ cases, typical packages will therefore only use a few of them. * +LIBFOO_INSTALL_STAGING_OPT+ contains the make options used to install the package to the staging directory. By default, the - value is +DESTDIR=$$(STAGING_DIR) install+, which is + value is +DESTDIR=$(STAGING_DIR) install+, which is correct for most autotools packages. It is still possible to override it. * +LIBFOO_INSTALL_TARGET_OPT+ contains the make options used to install the package to the target directory. By default, the - value is +DESTDIR=$$(TARGET_DIR) install+. The default + value is +DESTDIR=$(TARGET_DIR) install+. The default value is correct for most autotools packages, but it is still possible to override it if needed. |