regression on -current with gcc-10.2.0
by nobodino from LinuxQuestions.org on (#5CQVA)
Regression on -current with gcc-10.2.0, all the following packages need the "-fcommon" option to build with gcc-10.2.0
Add in package.SlackBUild "-fcommon" to SLKCFLAGS for:
-a/ floppy, gpm, jfsutils, kbd, sharutils, tcsh
-ap/ squashfs-tools
-l/ libclc, libnih, libunwind, libvisual-plugins, ocl-icd
-n/ dhcp, gnupg, iftop, netwatch, socat
-x/ freeglut
-xap/ gnuchess
special way to obtain "-fcommon" option:
-sc-im: change the line "make || exit 1" by "CFLAGS="-fcommon" make || exit 1"
-nn: before the line "make all || exit 1" add the line "sed -i -e 's/-O2/-O2 -fcommon/' Makefile"
-tftp-hpa: after the line "./configure --prefix=/usr" add the line "sed -i -e 's/-I$(SRCROOT)/-I$(SRCROOT) -fcommon/' MCONFIG"
-seyon: before the line "make || exit 1" add the line " sed -i -e 's/-fno-strict-aliasing/-fno-strict-aliasing -fcommon/' Makefile"
-x11: openchrome, ati, amdgpu and geode video driver don't build: modify arch.use.flags as follow SLKCFLAGS="-O2 -fPIC" to SLKCFLAGS="-O2 -fPIC -fcommon"


Add in package.SlackBUild "-fcommon" to SLKCFLAGS for:
-a/ floppy, gpm, jfsutils, kbd, sharutils, tcsh
-ap/ squashfs-tools
-l/ libclc, libnih, libunwind, libvisual-plugins, ocl-icd
-n/ dhcp, gnupg, iftop, netwatch, socat
-x/ freeglut
-xap/ gnuchess
special way to obtain "-fcommon" option:
-sc-im: change the line "make || exit 1" by "CFLAGS="-fcommon" make || exit 1"
-nn: before the line "make all || exit 1" add the line "sed -i -e 's/-O2/-O2 -fcommon/' Makefile"
-tftp-hpa: after the line "./configure --prefix=/usr" add the line "sed -i -e 's/-I$(SRCROOT)/-I$(SRCROOT) -fcommon/' MCONFIG"
-seyon: before the line "make || exit 1" add the line " sed -i -e 's/-fno-strict-aliasing/-fno-strict-aliasing -fcommon/' Makefile"
-x11: openchrome, ati, amdgpu and geode video driver don't build: modify arch.use.flags as follow SLKCFLAGS="-O2 -fPIC" to SLKCFLAGS="-O2 -fPIC -fcommon"