Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
c5d8f4e9
Commit
c5d8f4e9
authored
9 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
SPARC support in native
parent
28ed9b80
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.native/gnur/Makefile.gnur
+12
-9
12 additions, 9 deletions
com.oracle.truffle.r.native/gnur/Makefile.gnur
with
12 additions
and
9 deletions
com.oracle.truffle.r.native/gnur/Makefile.gnur
+
12
−
9
View file @
c5d8f4e9
...
...
@@ -60,22 +60,25 @@ ifeq ($(OSNAME), SunOS)
#
# Configuring GnuR for Solaris is slightly complicated for three reasons:
# 1. the default iconv utility is inadequate and has to be replaced by Gnu iconv
# 2. there is a choice of compilers, gcc or solaris studio, the latter requiring
# more configuration options
# 2. the solaris studio compilers must be used, assumed to be in /opt/solarisstudio12.3
# 3. Solaris runs on x64 and Sparc
#
# Currently we only support gcc and x64 (gcc assumed to be on the PATH)
#
OS_ARCH
:=
$(
shell
uname
-p
)
ifneq
($(OS_ARCH), i386)
$(
error
Solaris/SPARC not supported
)
SSTUDIO
:=
/opt/solarisstudio12.3
FLIBS_COMMON
:=
-lsunimath
-lfai
-lfui
-lsunmath
-lmtsk
-lfsu
ifeq
($(OS_ARCH), i386)
SUB_ARCH
:=
amd64
else
SUB_ARCH
:=
sparc/64
FLIBS_SUB_ARCH
:=
-lifai
-lfai2
-lfsumai
-lfprodai
-lfminlai
-lfmaxlai
-lfminvai
-lfmaxvai
endif
ICONV
:=
libiconv-1.14
$(
shell
mkdir
-p
iconv_install
)
ICONV_INSTALL
:=
$(
abspath iconv_install
)
$(info
ICONV_INSTALL
=
$(
ICONV_INSTALL
)
)
ICONV_FLAGS
:=
"-L
$(
ICONV_INSTALL
)
/lib -I
$(
ICONV_INSTALL
)
/include"
ICONV_CONFIG_FLAGS
:=
CFLAGS
=
$(
ICONV_FLAGS
)
CPPFLAGS
=
$(
ICONV_FLAGS
)
LDFLAGS
=
$(
ICONV_FLAGS
)
ICONV_CONFIG_FLAGS
:=
CC
=
"
$(
SSTUDIO
)
/bin/cc -m64"
CXX
=
"
$(
SSTUDIO
)
/bin/CC -m64"
CFLAGS
=
$(
ICONV_FLAGS
)
LDFLAGS
=
$(
ICONV_FLAGS
)
GNUR_FLIBS
:=
FLIBS
=
"-R
$(
SSTUDIO
)
/prod/lib/
$(
SUB_ARCH
)
$(
FLIBS_COMMON
)
$(
FLIBS_SUB_ARCH
)
"
GNUR_CONFIG_FLAGS
:=
$(
ICONV_CONFIG_FLAGS
)
CPPFLAGS
=
$(
ICONV_FLAGS
)
$(
GNUR_FLIBS
)
F77
=
"
$(
SSTUDIO
)
/bin/sunf95 -m64"
iconv
:
$(ICONV) iconv_config iconv_build
...
...
@@ -108,7 +111,7 @@ config_update:
endif
$(GNUR_HOME)/Makefile
:
(
cd
$(
GNUR_HOME
);
./configure
--with-x
=
no
--without-recommended-packages
$(
ICONV
_CONFIG_FLAGS
)
>
gnur_configure.log 2>&1
)
(
cd
$(
GNUR_HOME
);
./configure
--with-x
=
no
--without-recommended-packages
$(
GNUR
_CONFIG_FLAGS
)
>
gnur_configure.log 2>&1
)
build
:
$(GNUR_HOME)/bin/R
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment