for word in progoutput(['pkg-config', '--libs', spec]).split():
if word.startswith('-L'): LIBDIRS.append(word[2:])
elif word.startswith('-l'): LIBS.append(word[2:])
for word in progoutput(['pkg-config', '--libs', spec]).split():
if word.startswith('-L'): LIBDIRS.append(word[2:])
elif word.startswith('-l'): LIBS.append(word[2:])