From 7b81ec272b0c54ac893c09be4715b76e84c27b23 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 24 Oct 2018 10:38:34 +0900 Subject: gpg-error-config: Get var/attr from the first package. * src/gpg-error-config-new.in: Only get it from the first. Signed-off-by: NIIBE Yutaka --- src/gpg-error-config-new.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gpg-error-config-new.in b/src/gpg-error-config-new.in index b8b7328..d0b9a32 100644 --- a/src/gpg-error-config-new.in +++ b/src/gpg-error-config-new.in @@ -576,10 +576,13 @@ all_required_config_files $module_list for p in $PKG_LIST; do read_config_file $p $PKG_CONFIG_PATH + # For want_var or want_attr, get it from the first package if [ -n "$want_var" ]; then - output="$output${output:+$delimiter}$(get_var $want_var)" + output="$(get_var $want_var)" + break elif [ -n "$want_attr" ]; then - output="$output${output:+$delimiter}$(get_attr $want_attr)" + output="$(get_attr $want_attr)" + break else cflags="$cflags${cflags:+ }$(get_attr Cflags)" libs="$libs${libs:+ }$(get_attr Libs)" -- cgit v1.2.3