Chris00 / ocaml-cairo

Binding to Cairo, a 2D Vector Graphics Library.
GNU Lesser General Public License v3.0
54 stars 8 forks source link

Ensure exactly 1 definition per variable for building with -fno-common #20

Closed jamesjer closed 3 years ago

jamesjer commented 4 years ago

GCC 10 is changing the default from -fcommon to -fno-common. This patch fixes some variables that could have definitions in multiple translation units so that they are defined in exactly one translation unit.

Chris00 commented 3 years ago

Thanks. A somewhat similar patch has been integrated.