Skip to content

Commit

Permalink
lang/gcc7: Refine the condition to enable multilib
Browse files Browse the repository at this point in the history
  • Loading branch information
msk committed May 2, 2018
1 parent 320fa64 commit 7f56fc9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lang/gcc7/options.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: options.mk,v 1.2 2017/05/10 15:02:29 jperkin Exp $
# $NetBSD: options.mk,v 1.3 2018/05/02 18:38:30 minskim Exp $

PKG_OPTIONS_VAR= PKG_OPTIONS.${GCC_PKGNAME}
PKG_SUPPORTED_OPTIONS= nls gcc-inplace-math gcc-c++ gcc-fortran \
Expand All @@ -22,8 +22,13 @@ PKG_SUGGESTED_OPTIONS+= gcc-inplace-math
###
MULTILIB_SUPPORTED?= unknown
.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
. if exists(/usr/include/gnu/stubs-64.h) && \
!exists(/usr/include/gnu/stubs-32.h)
. if exists(/usr/include/x86_64-linux-gnu/gnu)
_GNU_INCLUDE_DIR= /usr/include/x86_64-linux-gnu/gnu
. else
_GNU_INCLUDE_DIR= /usr/include/gnu
. endif
. if exists(${_GNU_INCLUDE_DIR}/stubs-64.h) && \
!exists(${_GNU_INCLUDE_DIR}/stubs-32.h)
MULTILIB_SUPPORTED=No
. else
MULTILIB_SUPPORTED=Yes
Expand Down

0 comments on commit 7f56fc9

Please sign in to comment.