Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
OPAL
build-recipes
Commits
3ccf104d
Commit
3ccf104d
authored
Sep 20, 2021
by
gsell
Browse files
build GCC: set sysroot on macOS
parent
7531714c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
040-build-gcc
040-build-gcc
+14
-4
No files found.
040-build-gcc
View file @
3ccf104d
...
...
@@ -36,15 +36,25 @@ tar xvf "${SRC_FILE}" || exit ${OTB_ERR_UNTAR}
# configure
mkdir
-v
-p
"
${
OTB_SRC_DIR
}
/
$P
/build"
&&
cd
"
$_
"
||
exit
${
OTB_ERR_SYSTEM
}
# OS dependent args
declare
-a
args
=()
if
[[
$(
uname
-s
)
==
Darwin
]]
;
then
sysroot
=
$(
xcrun
--show-sdk-path
)
args+
=(
"--with-sysroot=
${
sysroot
}
"
)
fi
"
${
OTB_SRC_DIR
}
/
$P
/
$P
-
$V
/configure"
\
--prefix
=
"
${
OTB_PREFIX
}
"
\
--with-gmp
=
"
${
OTB_PREFIX
}
"
\
--with-mpfr
=
"
${
OTB_PREFIX
}
"
\
--with-mpc
=
"
${
OTB_PREFIX
}
"
\
--enable-languages
=
c,c++,objc,obj-c++,lto,fortran
\
--enable-lto
\
--disable-multilib
\
--with-build-config
=
bootstrap-debug
||
exit
${
OTB_ERR_CONFIGURE
}
--with-build-config
=
bootstrap-debug
\
--with-gmp
=
"
${
OTB_PREFIX
}
"
\
--with-mpfr
=
"
${
OTB_PREFIX
}
"
\
--with-mpc
=
"
${
OTB_PREFIX
}
"
\
"
${
args
[@]
}
"
\
||
exit
${
OTB_ERR_CONFIGURE
}
# compile & install
make
-j
3
||
exit
${
OTB_ERR_MAKE
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment