Skip to contentSkip to conversation

make: Non standard CLDFLAGS used for some targets

DISCUSSION Marian Csontos 1 participant 1 message Mar 15, 2018

lore
Share & tools
lore
#0 lore raw

I am looking into Bug 1548715 - lvm2: Partial build flags injection

https://bugzilla.redhat.com/show_bug.cgi?id=1548715

I have found most of our code uses "standard" variables CFLAGS, LDFLAGS, but at few places (e.g. dmeventd) CLDFLAGS is used for whatever reason.

The purpose is not clear to me... Anything to do with versioned symbols:

CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"

Whatever the purpose is, this ignores set LDFLAGS variable.
1. Shall this be set to LDFLAGS as default, and extended with additional options?
2. Shall this be used together with LDFLAGS, like ELDFLAGS?

-- Martian