You can fiddle with the IVs to make Photosynthesis boost the stat you want. I have 23 attack on Roaring Moon so it boosts speed.
Is it viable? Probably not because that's a lot of attack it's missing out but people did that with Beast Boost iirc so it could be viable some like 2 Pokemon.
Also...