build: Don't duplicate Libs in Libs.private in pkg-config file

pkg-config already prepends Libs to Libs.private when you specify
--static so there's no need to duplicate them. Most other projects
don't do this.
This commit is contained in:
James Le Cuirot
2020-04-12 13:24:36 +01:00
parent 99f87a7158
commit abcc6706fd
4 changed files with 4 additions and 4 deletions

View File

@@ -1962,7 +1962,7 @@ Libs.private:")
# Clean up the different lists
listtostr(EXTRA_LIBS _EXTRA_LIBS "-l")
set(SDL_STATIC_LIBS ${SDL_LIBS} ${EXTRA_LDFLAGS} ${_EXTRA_LIBS})
set(SDL_STATIC_LIBS ${EXTRA_LDFLAGS} ${_EXTRA_LIBS})
list(REMOVE_DUPLICATES SDL_STATIC_LIBS)
listtostr(SDL_STATIC_LIBS _SDL_STATIC_LIBS)
set(SDL_STATIC_LIBS ${_SDL_STATIC_LIBS})