[Lunar-commits] <moonbase-other> lua: build shared object

v4hn me at v4hn.de
Wed May 1 22:32:27 CEST 2013


commit e83cec13bbbc4767414829db4bb8c7924ae3853a
Author: v4hn <me at v4hn.de>
Date: Wed, 01 May 2013 13:31:49 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/e83cec13bbbc4767414829db4bb8c7924ae3853a

lua: build shared object

Thank you to Rainbowcrypt for reporting
---
  compilers/lua/BUILD   | +8/-6     
  compilers/lua/DETAILS | +4/-1     
  2 files changed, 12 insertions(+), 7 deletions(-)

--- a/compilers/lua/BUILD
+++ b/compilers/lua/BUILD
@@ -1,9 +1,11 @@
-(
+# build shared object
+patch_it $SOURCE2 0 &&
+sedit "s at 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
--- a/compilers/lua/DETAILS
+++ b/compilers/lua/DETAILS
@@ -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




More information about the Lunar-commits mailing list