From: Wolfgang Stöggl Date: Thu, 26 Sep 2019 07:27:47 +0000 (+0200) Subject: Sort and remove duplicate entries in ALL_LIBS X-Git-Tag: v1.8.0~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c041eeacafa5fec9a3219cf0631e13080f1ca1d;p=thirdparty%2Frrdtool-1.x.git Sort and remove duplicate entries in ALL_LIBS - So far, configure showed e.g. the following at the end: Libraries: -lgobject-2.0 -lpng -lm -ldbi -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lcairo -lxml2 The variable ALL_LIBS included duplicates resulting from the configure process and some double spaces. - Now, ALL_LIBS is sorted and duplicate entries are removed, e.g.: Libraries: -lcairo -ldbi -lglib-2.0 -lgobject-2.0 -lharfbuzz -lm -lpango-1.0 -lpangocairo-1.0 -lpng -lxml2 --- diff --git a/configure.ac b/configure.ac index f79f1c09..13608df6 100644 --- a/configure.ac +++ b/configure.ac @@ -626,7 +626,8 @@ if test "$EX_CHECK_ALL_ERR" = "YES"; then AC_MSG_ERROR([Please fix the library issues listed above and try again.]) fi -ALL_LIBS="$LIBS" +dnl Sort and remove duplicate entries in LIBS before assigning to ALL_LIBS +ALL_LIBS=$(echo "$LIBS"|tr -s " " "\n"|sort -u|tr "\n" " ") LIBS= AC_SUBST(CORE_LIBS)