add (inherited) variable to OTHER_LDFLAGS and OTHER_CPLUSPLUSFLAGS