configure switch to enable_static on if shared off when hardsetting for valgrind or cavium