Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4453dfc4
Commit
4453dfc4
authored
Jun 25, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contrib: add ARCH variable
parent
386df22d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
contrib/src/get-arch.sh
contrib/src/get-arch.sh
+26
-0
contrib/src/main.mak
contrib/src/main.mak
+1
-0
No files found.
contrib/src/get-arch.sh
0 → 100755
View file @
4453dfc4
#! /bin/sh
HOST
=
"
$1
"
if
test
-z
"
$HOST
"
;
then
echo
"Usage:
$0
<target machine>"
>
&2
exit
1
fi
case
"
$HOST
"
in
i[3456]86-
*
)
ARCH
=
"i386"
;;
powerpc-
*
|
ppc-
*
)
ARCH
=
"ppc"
;;
powerpc64-
*
|
ppc64-
*
)
ARCH
=
"ppc64"
;;
*
-
*
)
ARCH
=
"
${
HOST
%%-*
}
"
;;
*
)
echo
"
$HOST
: invalid machine specification"
>
&2
exit
1
esac
echo
$ARCH
contrib/src/main.mak
View file @
4453dfc4
...
...
@@ -27,6 +27,7 @@ PREFIX := $(abspath $(PREFIX))
ifneq
($(HOST),$(BUILD))
HAVE_CROSS_COMPILE
=
1
endif
ARCH
:=
$(
shell
$(SRC)
/get-arch.sh
$(HOST)
)
ifdef
HAVE_CROSS_COMPILE
need_pkg
=
1
...
...
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