Corrected inverted logic for static linking