#2822: support full paths to libraries in LIBS variables
Reporter:Roland Haas
Status:new
Milestone:
Version:
Type:bug
Priority:minor
Component:

Comment (by Roland Haas):

A possible workaround in bash_utils.sh is

  # NOTE: This breaks if pkg-config returns quotes strings, i.e., path names
  #       with strings in them. It doesn't seems to happen in practice.
  #       If it does: let us know what pkg-config prints in that case, and we
  #       can try to fix it.
  local INC_DIRS=$($PKGCONFIG --cflags-only-I "$STATIC" "$LIBNAME" | perl -pe 's/(^| )+-I/\1/g')
  local LIB_DIRS=$($PKGCONFIG --libs-only-L   "$STATIC" "$LIBNAME" | perl -pe 's/(^| )+-L/\1/g')
  local     LIBS=""
  local ALLLIBS=$($PKGCONFIG --libs-only-l   "$STATIC" "$LIBNAME" | perl -pe 's/(^| )+-l/\1/g')
  for lib in $ALLLIBS--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2822/support-full-paths-to-libraries-in-libs