Skip to content

Commit

Permalink
fix gcc10 build for default fno-common issue
Browse files Browse the repository at this point in the history
Signed-off-by: Hajime Tazaki <[email protected]>
  • Loading branch information
thehajime committed Oct 14, 2021
1 parent 110b315 commit c166edd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ TARGET=$(LC_ALL=C ${CC-cc} -v 2>&1 | sed -n 's/^Target: //p' )
case ${TARGET} in
*-linux*)
OS=linux
export HOST_CFLAGS="-fcommon"
EXTRA_CFLAGS+=" -fcommon"
;;
*-netbsd*)
OS=netbsd
Expand Down

0 comments on commit c166edd

Please sign in to comment.