Index: Mk/bsd.options.mk =================================================================== --- Mk/bsd.options.mk +++ Mk/bsd.options.mk @@ -475,12 +475,11 @@ . endfor . endif . if defined(${opt}_VARS) -. for var in ${${opt}_VARS} -_u= ${var:C/=.*//} -. if ${_u:M*+} -${_u:C/.$//:tu}+= ${var:C/[^+]*\+=//:C/^"(.*)"$$/\1/} +. for var in ${${opt}_VARS:C/=.*//:O:u} +. if ${var:M*+} +${var:C/.$//:tu}+= ${${opt}_VARS:M${var}=*:C/[^+]*\+=//:C/^"(.*)"$$/\1/} . else -${_u:tu}= ${var:C/[^=]*=//:C/^"(.*)"$$/\1/} +${var:tu}= ${${opt}_VARS:M${var}=*:[-1]:C/[^=]*=//:C/^"(.*)"$$/\1/} . endif . endfor . endif