#1140421 blhc fails to detect LDFLAGS inside quoted compiler commands

Package:
blhc
Source:
blhc
Submitter:
Anuradha Weeraman
Date:
2026-06-30 08:31:02 UTC
Severity:
normal
#1140421#5
Date:
2026-06-20 04:12:46 UTC
From:
To:
Hi

I'm seeing a blhc error on missing LDFLAGS in a quoted command such as
below where the LDFLAGS are present:

+ iffe -v -c 'cc -g -O2 -Wl,-z,relro -Wl,-z,now' ref test.c

blhc reports:

  LDFLAGS missing (-Wl,-z,now): ...

  LDFLAGS missing (-Wl,-z,now): + iffe -v -c 'cc  -D_BLD_DLL
  -fPIC -fPIC -Os -g -O2 -Werror=implicit-function-declaration
  -ffile-prefix-map=/build/package/package=. -fstack-protector-strong
  -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
  -Wdate-time -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -Wl,-z,relro
  -Wl,-z,now' ref -I/build/package/package/arch/linux.i386-64/include/ast
  -I/build/package/package/arch/linux.i386-64/include
  /build/package/package/arch/linux.i386-64/lib/libast.a : run
  /build/package/package/src/lib/libsum/features/sum

Salsa job: https://salsa.debian.org/debian/ksh/-/jobs/9809728

Anuradha