Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Fix gcc10 #981

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix gcc10 #981

wants to merge 2 commits into from

Conversation

SoapGentoo
Copy link

Hi @hishamhm
GCC 10 switches from -fcommon to -fno-common by default (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85678), and htop currently fails when building against -fno-common.

I've enabled -fno-common in Travis to emulate GCC 10's behaviour, to catch any future bugs like this.

aswild pushed a commit to aswild/htop that referenced this pull request Apr 9, 2020
Switch Travis to catch GCC 10 issues

Squashed cherry-pick of hishamhm#981
aswild added a commit to aswild/htop that referenced this pull request Apr 9, 2020
Follow-up to cherry-picking hishamhm#981
  * add -fno-common to AM_CFLAGS
  * move -D and -I options from AM_CFLAGS to AM_CPPFLAGS
@ginggs
Copy link
Collaborator

ginggs commented Jul 2, 2020

See line 1 of CRT.h and linux/LinuxProcess.h :

/* Do not edit this file. It was automatically generated. */

lpereira pushed a commit to lpereira/htop that referenced this pull request Aug 9, 2020
Extends the MakeHeader script to auto-generate correct "extern"
function declarations in some cases that it currently does not.

Related to hishamhm#981
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants