Skip to content
  • Brad King's avatar
    CMakeParseImplicitLinkInfo: Do not match "VAR=..." as link line (#15737) · 97ffbcd8
    Brad King authored
    When compiling with
    
      LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
    
    the compiler output includes a line like
    
      COLLECT_GCC_OPTIONS='-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ...
    
    that our link line regex matches due to an argument ending in "-ld".
    Since it is not really the link line no implicit link information is
    dectected.  Exclude "VAR=..." lines from consideration as link lines to
    fix this.
    97ffbcd8