I have two sets of static libraries: one is for production release and another for debugging purposes.

I can conditionally compile with headers from both libraries using #ifdef but how can I conditionally link?