summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@vx21.xyz>2019-09-21 16:01:25 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-09-23 05:49:36 +0100
commit07e12e61a4cf008696135aeb2c7482b5ced857e9 (patch)
treefd812d256b42bf748cec81783e9646295c430028
parentb9f5ced260afb20f90050b44427eeff8de30e427 (diff)
downloadluxio-07e12e61a4cf008696135aeb2c7482b5ced857e9.tar.bz2
Fix linker error on Ubuntu
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5826b73..a4965d2 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ luxio-5.1.so: luxio-5.1.o
$(CC) $(LDFLAGS) -shared $(EXTRA_LIBS) -o luxio-5.1.so $^
luxio-5.1: lua-5.1.c luxio-5.1.o
- $(CC) -o luxio-5.1 $(CFLAGS) $(LUA51_INC) $(LDFLAGS) $(EXTRA_LIBS) lua-5.1.c luxio-5.1.o $(LUA51_LIB)
+ $(CC) -o luxio-5.1 $(CFLAGS) $(LUA51_INC) lua-5.1.c luxio-5.1.o $(LUA51_LIB) $(LDFLAGS) $(EXTRA_LIBS)
.PHONY: lua-5.2
lua-5.2: luxio-5.2.so luxio-5.2
@@ -73,7 +73,7 @@ luxio-5.2.so: luxio-5.2.o
$(CC) $(LDFLAGS) -shared $(EXTRA_LIBS) -o luxio-5.2.so $^
luxio-5.2: lua-5.2.c luxio-5.2.o
- $(CC) -o luxio-5.2 $(CFLAGS) $(LDFLAGS) $(EXTRA_LIBS) $(LUA52_INC) lua-5.2.c luxio-5.2.o $(LUA52_LIB)
+ $(CC) -o luxio-5.2 $(CFLAGS) $(LUA52_INC) lua-5.2.c luxio-5.2.o $(LUA52_LIB) $(LDFLAGS) $(EXTRA_LIBS)
###