Skip to content

Instantly share code, notes, and snippets.

@farukg
Last active August 27, 2021 03:28
Show Gist options
  • Save farukg/65eb2cf702123ff12323b10d53808d5d to your computer and use it in GitHub Desktop.
Save farukg/65eb2cf702123ff12323b10d53808d5d to your computer and use it in GitHub Desktop.
fast temp. solution when getting errors using gcc >= 10 & opam switch
#! /bin/sh
eval /usr/bin/gcc -fcommon '"$@"'
from https://discuss.ocaml.org/t/opam-switch-create-and-gcc10/5864/13?u=farukg
thanks to https://discuss.ocaml.org/u/eduardorfs
To avoid problems with the ecossystem a global wrapper is the best option
```shell
#! /bin/sh
eval /usr/bin/gcc -fcommon '"$@"'
```
at /usr/local/bin/gcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment