Last active
August 27, 2021 03:28
-
-
Save farukg/65eb2cf702123ff12323b10d53808d5d to your computer and use it in GitHub Desktop.
fast temp. solution when getting errors using gcc >= 10 & opam switch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
eval /usr/bin/gcc -fcommon '"$@"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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