Commits

Anonymous committed 6f43313

-fvisibility=hidden is now added to GCC compiler command lines by default

Comments (0)

Files changed (1)

doozerlib/kitbox/gnu/compiler.py

             self.flagsmap.add(Has('no-exceptions'), Append(flagsname, '-fno-exceptions'))
             self.flagsmap.add(Has('no-rtti'), Append(flagsname, '-fno-rtti'))
 
+        self.flagsmap.add(Not(Has('dont-hide-symbols')), Append(flagsname, '-fvisibility=hidden'))
+
     def objfile(self, source):
         assert source == basename(source)
         return splitext(basename(source))[0] + '.o'