Pārlūkot izejas kodu

make: select gettext and libintl if locale is enabled

This patch makes sure gettext and libintl are selected if locale support is
enabled. Gettext must also be compiled before make so appropriate headers are
available to make.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt 17 gadi atpakaļ
vecāks
revīzija
32cca54384
2 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 2 0
      package/make/Config.in
  2. 1 1
      package/make/make.mk

+ 2 - 0
package/make/Config.in

@@ -1,5 +1,7 @@
 config BR2_PACKAGE_MAKE
 config BR2_PACKAGE_MAKE
 	bool "make"
 	bool "make"
+	select BR2_PACKAGE_GETTEXT if BR2_ENABLE_LOCALE
+	select BR2_PACKAGE_LIBINTL if BR2_ENABLE_LOCALE
 	help
 	help
 	  A tool which controls the generation of executables and other
 	  A tool which controls the generation of executables and other
 	  non-source files of a program from the program's source files.
 	  non-source files of a program from the program's source files.

+ 1 - 1
package/make/make.mk

@@ -71,5 +71,5 @@ make-dirclean:
 #
 #
 #############################################################
 #############################################################
 ifeq ($(strip $(BR2_PACKAGE_MAKE)),y)
 ifeq ($(strip $(BR2_PACKAGE_MAKE)),y)
-TARGETS+=make
+TARGETS+=$(if $(BR2_PACKAGE_GETTEXT),gettext) make
 endif
 endif