Prechádzať zdrojové kódy

package/procps-ng: fix linking with intl

procps-ng doesn't build with (e)glibc toolchain when gettext package is
selected.

With (e)glibc libintl is provided by the libc whereas with uClibc it's provided
by gettext.

Linking with intl is only needed if the toolchain needs gettext and locale is
set.

Fixes:
http://autobuild.buildroot.net/results/3e8/3e8464e0b00ce22fa02a6337159fca250d86425c/build-end.log

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Romain Naour 11 rokov pred
rodič
commit
47128a9b82
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      package/procps-ng/procps-ng.mk

+ 1 - 1
package/procps-ng/procps-ng.mk

@@ -12,7 +12,7 @@ PROCPS_NG_LICENSE_FILES = COPYING COPYING.LIB
 
 
 PROCPS_NG_DEPENDENCIES = ncurses
 PROCPS_NG_DEPENDENCIES = ncurses
 
 
-ifeq ($(BR2_PACKAGE_GETTEXT),y)
+ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
 PROCPS_NG_DEPENDENCIES += gettext
 PROCPS_NG_DEPENDENCIES += gettext
 PROCPS_NG_CONF_OPT += LIBS=-lintl
 PROCPS_NG_CONF_OPT += LIBS=-lintl
 endif
 endif