damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.44k stars 799 forks source link

Enable Lua Socket Unix Sockets #282

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:24

Please enable the optional unix sockets in lua socket.

--- a/makefile
+++ b/makefile
@@ -10,6 +10,8 @@
 INSTALL_SOCKET_LIB=$(INSTALL_TOP_LIB)/socket
 INSTALL_MIME_SHARE=$(INSTALL_TOP_SHARE)/mime
 INSTALL_MIME_LIB=$(INSTALL_TOP_LIB)/mime
+#
+INSTALL_UNIX_LIB=$(INSTALL_SOCKET_LIB)

 all clean:
        cd src; $(MAKE) $@
@@ -45,6 +47,8 @@
        #cd src; $(INSTALL_DATA) $(TO_MIME_SHARE) $(INSTALL_MIME_SHARE)
        cd src; mkdir -p $(INSTALL_MIME_LIB)
        cd src; $(INSTALL_EXEC) $(MIME_SO) $(INSTALL_MIME_LIB)/core.$(EXT)
+       cd src; mkdir -p $(INSTALL_UNIX_LIB)
+       cd src; $(INSTALL_EXEC) $(UNIX_SO) $(INSTALL_UNIX_LIB)/$(UNIX_SO)

 #------
 # End of makefile

--- a/src/makefile
+++ b/src/makefile
@@ -47,7 +47,7 @@
        usocket.o \
        unix.o

-all: $(SOCKET_SO) $(MIME_SO)
+all: $(SOCKET_SO) $(MIME_SO) ${UNIX_SO}

 $(SOCKET_SO): $(SOCKET_OBJS)
        $(LD) $(LDFLAGS) -o $@ $(SOCKET_OBJS)

Original issue reported on code.google.com by daurnimator@gmail.com on 12 Dec 2009 at 5:30

Copied from original issue: damonkohler/android-scripting#152

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:24

Original comment by damonkoh...@gmail.com on 2 May 2010 at 3:03