Permalink
Browse files

lua: build shared object

Thank you to Rainbowcrypt for reporting
  • Loading branch information...
1 parent 3f2b83a commit e83cec13bbbc4767414829db4bb8c7924ae3853a @v4hn v4hn committed May 1, 2013
Showing with 12 additions and 7 deletions.
  1. +8 −6 compilers/lua/BUILD
  2. +4 −1 compilers/lua/DETAILS
View
@@ -1,9 +1,11 @@
-(
+# build shared object
+patch_it $SOURCE2 0 &&
+sedit "s@CFLAGS=@CFLAGS+=@" src/Makefile &&
+CFLAGS+=" -fPIC" &&
- sedit "s:/usr/local:/usr:" Makefile &&
+sedit "s:/usr/local:/usr:" Makefile &&
- make linux &&
- prepare_install &&
- make install
-) > $C_FIFO 2>&1
+make linux &&
+prepare_install &&
+make install
View
@@ -1,11 +1,14 @@
MODULE=lua
VERSION=5.2.2
SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE2=$MODULE-5.2.2-make-shared-lib.patch
SOURCE_URL=http://www.lua.org/ftp
+ SOURCE2_URL=$PATCH_URL
SOURCE_VFY=sha1:0857e41e5579726a4cb96732e80d7aa47165eaf5
+ SOURCE2_VFY=sha1:3559e8d5f19397386d7c2594f1d614e3ac43a02a
WEB_SITE=http://www.lua.org
ENTERED=20040429
- UPDATED=20130429
+ UPDATED=20130501
SHORT="light-weight programming language for extending applications"
cat << EOF

0 comments on commit e83cec1

Please sign in to comment.