test with PIC=no instead of STATICLIB=no (more likely scenario)
remove debugging output