luasocket: fix build on mpc85xx
authorLaurent Papier <papier[at]tuxfan.net>
Thu, 22 Feb 2018 22:46:48 +0000 (23:46 +0100)
committerRosen Penev <rosenp@gmail.com>
Sun, 12 Jan 2020 02:54:46 +0000 (18:54 -0800)
Signed-off-by: Laurent Papier <papier[at]tuxfan.net>
(cherry-picked from cb44bfebd5cdf41fb04f14d628ed9ba62275dd1a)

lang/luasocket/Makefile
lang/luasocket/patches/0301-Fix-mpc85xx-build.patch [new file with mode: 0644]

index 5e7c98300fd3988c15d5291312e846ea5b3ac055..e97c1a5216b1116f5aeb963b468614ddaa7bbbd4 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=luasocket
 PKG_SOURCE_VERSION:=6d5e40c324c84d9c1453ae88e0ad5bdd0a631448
 PKG_VERSION:=3.0-rc1-20130909
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://github.com/diegonehab/luasocket.git
diff --git a/lang/luasocket/patches/0301-Fix-mpc85xx-build.patch b/lang/luasocket/patches/0301-Fix-mpc85xx-build.patch
new file mode 100644 (file)
index 0000000..c3bf949
--- /dev/null
@@ -0,0 +1,25 @@
+--- a/src/makefile
++++ b/src/makefile
+@@ -345,18 +345,18 @@ none:
+ all: $(SOCKET_SO) $(MIME_SO)
+ $(SOCKET_SO): $(SOCKET_OBJS)
+-      $(LD) $(SOCKET_OBJS) $(LDFLAGS)$@
++      $(CC) $(SOCKET_OBJS) $(LDFLAGS)$@
+ $(MIME_SO): $(MIME_OBJS)
+-      $(LD) $(MIME_OBJS) $(LDFLAGS)$@
++      $(CC) $(MIME_OBJS) $(LDFLAGS)$@
+ all-unix: all $(UNIX_SO) $(SERIAL_SO)
+ $(UNIX_SO): $(UNIX_OBJS)
+-      $(LD) $(UNIX_OBJS) $(LDFLAGS)$@
++      $(CC) $(UNIX_OBJS) $(LDFLAGS)$@
+ $(SERIAL_SO): $(SERIAL_OBJS)
+-      $(LD) $(SERIAL_OBJS) $(LDFLAGS)$@
++      $(CC) $(SERIAL_OBJS) $(LDFLAGS)$@
+ install: 
+       $(INSTALL_DIR) $(INSTALL_TOP_LDIR)