We develop and present the novel minimum estimation error variance waveform design method, that optimizes the spectral shape of a unimodular radar waveform such that the performance of a joint radar-communications system that shares spectrum is maximized. We also perform a numerical study to compare the performance of the new technique with the previously derived spectral mask shaping method. The global estimation rate and the data rate capture the radar and the communications performance respectively.