summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Kendrick (monotony) <rjek@rjek.com>2012-07-31 09:27:21 +0100
committerRob Kendrick (monotony) <rjek@rjek.com>2012-07-31 09:27:21 +0100
commit5e2e9bb2e6fb7ce5f3f1a6d3ec42cded08749e46 (patch)
tree6d49c1c9a1569b3165ccc9cee1ba8c941d84960d /Makefile
parentf1841c4afc4ee1767b478f1e8d769b24925d91c7 (diff)
downloadluxio-5e2e9bb2e6fb7ce5f3f1a6d3ec42cded08749e46.tar.gz
Tweak to makefile to allow setting of LDFLAGS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0ca82ca..f59c2f1 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,7 @@ lua-5.1-install: lua-5.1
$(INSTALL) -m 644 $(LUALIBS) $(DESTDIR)$(LUA51_LMOD_INST)/luxio/
luxio-5.1.so: luxio-5.1.o
- $(CC) -shared -Wl,--no-as-needed -o luxio-5.1.so $(LUA51_LIB) -lrt $^
+ $(CC) $(LDFLAGS) -shared -Wl,--no-as-needed -o luxio-5.1.so $(LUA51_LIB) -lrt $^
lua-5.2: luxio-5.2.so
ln -s -f luxio-5.2.so luxio.so
@@ -83,7 +83,7 @@ lua-5.2-install: lua-5.2
luxio-5.2.so: luxio-5.2.o
- $(CC) -shared -Wl,--no-as-needed -o luxio-5.2.so $(LUA52_LIB) -lrt $^
+ $(CC) $(LDFLAGS) -shared -Wl,--no-as-needed -o luxio-5.2.so $(LUA52_LIB) -lrt $^
luxio-5.1.o: luxio.c luxio_constants.h
$(CC) $(CFLAGS) -fPIC $(LUA51_INC) -c $< -o $@