Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
redox-os
cookbook
Commits
267c7486
Verified
Commit
267c7486
authored
4 years ago
by
jD91mZM2
Browse files
Options
Downloads
Patches
Plain Diff
Add libexpat to GDB
parent
ce969b5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!240
Add libexpat to GDB
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
recipes/gnu-binutils/recipe.sh
+7
-2
7 additions, 2 deletions
recipes/gnu-binutils/recipe.sh
with
7 additions
and
2 deletions
recipes/gnu-binutils/recipe.sh
+
7
−
2
View file @
267c7486
GIT
=
https://gitlab.redox-os.org/redox-os/binutils-gdb.git
GIT
=
https://gitlab.redox-os.org/redox-os/binutils-gdb.git
BRANCH
=
redox
BRANCH
=
redox
GIT_UPSTREAM
=
git://sourceware.org/git/binutils-gdb.git
GIT_UPSTREAM
=
git://sourceware.org/git/binutils-gdb.git
BUILD_DEPENDS
=(
relibc
)
BUILD_DEPENDS
=(
expat
)
function
recipe_version
{
function
recipe_version
{
printf
"r%s.%s"
"
$(
git rev-list
--count
HEAD
)
"
"
$(
git rev-parse
--short
HEAD
)
"
printf
"r%s.%s"
"
$(
git rev-list
--count
HEAD
)
"
"
$(
git rev-parse
--short
HEAD
)
"
...
@@ -18,7 +18,8 @@ function recipe_build {
...
@@ -18,7 +18,8 @@ function recipe_build {
mkdir
-p
"
$sysroot
/usr"
mkdir
-p
"
$sysroot
/usr"
ln
-sf
"
$sysroot
/include"
"
$sysroot
/usr/include"
ln
-sf
"
$sysroot
/include"
"
$sysroot
/usr/include"
ln
-sf
"
$sysroot
/lib"
"
$sysroot
/usr/lib"
ln
-sf
"
$sysroot
/lib"
"
$sysroot
/usr/lib"
export
LDFLAGS
=
"--static"
export
CPPFLAGS
=
"-I
$sysroot
/include -g"
export
LDFLAGS
=
"-L
$sysroot
/lib -static -g"
./configure
\
./configure
\
--build
=
${
BUILD
}
\
--build
=
${
BUILD
}
\
--host
=
${
HOST
}
\
--host
=
${
HOST
}
\
...
@@ -27,6 +28,10 @@ function recipe_build {
...
@@ -27,6 +28,10 @@ function recipe_build {
--with-sysroot
=
/
\
--with-sysroot
=
/
\
--with-build-sysroot
=
"
$sysroot
"
\
--with-build-sysroot
=
"
$sysroot
"
\
--enable-gdb
\
--enable-gdb
\
--with-expat
\
--with-multilib
\
--with-interwork
\
--enable-targets
=
x86_64-unknown-redox
\
--disable-nls
\
--disable-nls
\
--disable-werror
--disable-werror
"
$REDOX_MAKE
"
-j
"
$(
$NPROC
)
"
"
$REDOX_MAKE
"
-j
"
$(
$NPROC
)
"
...
...
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