Very silly problem with lighting

I have the following problem, i know it must be smt to be ashamed to ask, but i got so upset that i only have confusion in my head.
Suppose i have a light at 0,10,-10, and an object at 0,0,0. When i rotate the scene, i’d like to rotate the light too, so that the object illumination remains the same. I don’t know how to do it, could you pls help ?

Treat the light as any other object, position it with its local coordinates. It will transform with your viewing transforms.

use the rotate function before fdrawing the ligth and the object