Skip to content

Commit 5204c33

Browse files
committed
always use 32-bit compilation on sparc (to match what CRAN does)
1 parent fa83462 commit 5204c33

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/tbb/build/SunOS.gcc.inc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ ifeq (ia32,$(arch))
6363
LIB_LINK_FLAGS += -m32
6464
endif
6565

66-
# for some gcc versions on Solaris, -m64 may imply V9, but perhaps not everywhere (TODO: verify)
66+
# for some gcc versions on Solaris, -m64 may imply V9, but perhaps not everywhere (TODO: verify).
67+
# RcppParallel: CRAN uses 32-bit SPARC so we force that here
6768
ifeq (sparc,$(arch))
68-
CPLUS_FLAGS += -mcpu=v9 -m64
69-
LIB_LINK_FLAGS += -mcpu=v9 -m64
69+
CPLUS_FLAGS += -m32
70+
LIB_LINK_FLAGS += -m32
71+
# CPLUS_FLAGS += -mcpu=v9 -m64
72+
# LIB_LINK_FLAGS += -mcpu=v9 -m64
7073
endif
7174

7275
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)