message: cxx: Also take '-lstuff' into whole_archive.
diff: @@ -886,7 +886,8 @@ class GccToolkit(Toolkit):
  arnames=list()
  for e in cmd:
  e = str(e)
  - if e[-2:] == '.a':
  + if e[-2:] == '.a' or e[0:2] == '-l':
  + print('take %s' % e)
  if e.split('/')[-1] not in arnames:
  ar.append(e)
  arnames.append(e.split('/')[-1])
  @@ -931,7 +932,7 @@ class GccToolkit(Toolkit):
  arnames=list()
  for e in cmd:
  e = str(e)
  - if e[-2:] == '.a':
  + if e[-2:] == '.a' or e[0:2] == '-l':
  if e.split('/')[-1] not in arnames:
  ar.append(e)
  arnames.append(e.split('/')[-1])
  