-fvisibility is a CFLAG not an LDFLAG. Ensures only functions tagged for export are actually exported.