Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/make

Buildroot egtvedt at uclibc.org 3 participants 3 messages Nov 5, 2008

lore
Share & tools
lore
#0 lore raw

Author: egtvedt
Date: 2008-11-05 00:09:30 -0800 (Wed, 05 Nov 2008) New Revision: 23928

Log:
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.

Modified:
trunk/buildroot/package/make/Config.in
trunk/buildroot/package/make/make.mk

Changeset:
Modified: trunk/buildroot/package/make/Config.in
===================================================================

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

Modified: trunk/buildroot/package/make/make.mk
===================================================================

buildroot/package/make/make.mk +1 -1
@@ -71,5 +71,5 @@
 #
 #############################################################
 ifeq ($(strip $(BR2_PACKAGE_MAKE)),y)
-TARGETS+=make
+TARGETS+=$(if $(BR2_PACKAGE_GETTEXT),gettext) make
 endif
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"egtvedt" == egtvedt <[email protected]> writes:

egtvedt> Author: egtvedt
egtvedt> Date: 2008-11-05 00:09:30 -0800 (Wed, 05 Nov 2008) egtvedt> New Revision: 23928

egtvedt> Log:
egtvedt> make: select gettext and libintl if locale is enabled

egtvedt> ifeq ($(strip $(BR2_PACKAGE_MAKE)),y) egtvedt> -TARGETS+=make
egtvedt> +TARGETS+=$(if $(BR2_PACKAGE_GETTEXT),gettext) make

We normally do this by adding it as a dependency to the make: target, E.G.:

make: uclibc $(if $(BR2_PACKAGE_GETTEXT),gettext) $(TARGET_DIR)/$(GNUMAKE_TARGET_BINARY)

Adding it to TARGETS doesn't ensure that gettext gets built before make (well, actually it does, but it isn't very clear or robust)

Could you please change it?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw
Quoted 16 lines · On Wed, 05 Nov 2008 09:31:51 +0100 Peter Korsgaard <[email protected]> wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"egtvedt" == egtvedt <[email protected]> writes:

egtvedt> Author: egtvedt
egtvedt> Date: 2008-11-05 00:09:30 -0800 (Wed, 05 Nov 2008) egtvedt> New Revision: 23928

egtvedt> Log:
egtvedt> make: select gettext and libintl if locale is enabled

egtvedt> ifeq ($(strip $(BR2_PACKAGE_MAKE)),y) egtvedt> -TARGETS+=make
egtvedt> +TARGETS+=$(if $(BR2_PACKAGE_GETTEXT),gettext) make

We normally do this by adding it as a dependency to the make: target, E.G.:

Quoted 8 lines

make: uclibc $(if $(BR2_PACKAGE_GETTEXT),gettext)
$(TARGET_DIR)/$(GNUMAKE_TARGET_BINARY)

Adding it to TARGETS doesn't ensure that gettext gets built before make (well, actually it does, but it isn't very clear or robust)

Could you please change it?

Jupp, no problem (-:

Signature · 2 lines
Best regards,
Hans-Christian Egtvedt