make linked package support a condition build option