Generating a separate but continuous clock signal that's in sync with SPI CLK

I have a project that does requires an output clock to be synchronized with the SPI clock, but after much research, haven't found a way to do it with the Arduino SPI library which I prefer to use for its speed. Is it possible to make the SPI clock wait for the next rising edge of my output clock to synchronize with it? Maybe a change to the SPI library code?

Nick, do you know?