summaryrefslogtreecommitdiff
path: root/social/lua-cyrussasl/lua-cyrussasl.patch
blob: 5309e5af15e1039dd29164559278b10e5358d25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff --git a/Makefile b/Makefile
index 9c696ab..37057da 100644
--- a/Makefile
+++ b/Makefile
@@ -4,12 +4,18 @@
 #LUAPATH=/usr/share/lua/5.1
 #CPATH=/usr/lib/lua/5.1
 
+# Linux (Arch Linux)
+CFLAGS=-g -O2 -fpic -I/usr/include
+LDFLAGS=-O -shared -fpic -lsasl2
+LUAPATH=/usr/share/lua/5.1
+CPATH=/usr/lib/lua/5.1
+
 # MacOS
-CFLAGS=-g -Wall -O2
-LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
-MACOSX_VERSION=10.5
-LUAPATH=/usr/local/share/lua/5.1
-CPATH=/usr/local/lib/lua/5.1
+#CFLAGS=-g -Wall -O2
+#LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
+#MACOSX_VERSION=10.5
+#LUAPATH=/usr/local/share/lua/5.1
+#CPATH=/usr/local/lib/lua/5.1
 
 #########################################################
 #
@@ -26,7 +32,7 @@ OBJS=cyrussasl.o luaabstract.o context.o
 all: $(TARGET)
 
 install: $(TARGET)
-	cp $(TARGET) $(CPATH)
+	cp $(TARGET) $(DESTDIR)$(CPATH)
 
 clean:
 	rm -f *.o *.so *~