Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
5e1fd0ff
Commit
5e1fd0ff
authored
May 08, 2011
by
Pierre Ynard
Browse files
contribs: fix cross-compilation of lua
parent
6a065215
Changes
1
Hide whitespace changes
Inline
Side-by-side
extras/contrib/src/contrib-src.mak
View file @
5e1fd0ff
...
...
@@ -562,7 +562,7 @@ endif
.lua
:
lua
ifdef
HAVE_WIN32
(
cd
$<
&&
sed
-i
.orig
's/lua luac/lua.exe/'
Makefile
&&
cd
src
&&
sed
-i
.orig
's/CC=/#CC=/'
Makefile
&&
sed
-i
's/strip/
$(STRIP)
/'
Makefile
&&
cd
../..
)
(
cd
$<
&&
sed
-i
.orig
's/lua luac/lua.exe/'
Makefile
&&
cd
src
&&
sed
-i
.orig
's/CC=/#CC=/'
Makefile
&&
sed
-i
's/
=
strip/
=
$(STRIP)
/
;s/= ranlib/=
$(RANLIB)
/
'
Makefile
&&
cd
../..
)
(
cd
$<
&&
$(HOSTCC)
make
$
(
LUA_MAKEPLATEFORM-1
)&&
cd
src&&
$(HOSTCC)
make liblua.a&&
cd
..&&
$(HOSTCC)
make
install
INSTALL_TOP
=
$(PREFIX)
&&
$(RANLIB)
$(PREFIX)
/lib/liblua.a
)
(
cd
$<
&&
sed
-i
.orig
's@prefix= /usr/local@prefix=
$(PREFIX)
@'
etc/lua.pc&&
mkdir
-p
$(PREFIX)
/lib/pkgconfig&&
cp
etc/lua.pc
$(PREFIX)
/lib/pkgconfig
)
else
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment