Package: qcontrol / 0.5.5-2

multiarch.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
 
 LDFLAGS  += -g
 LIBS     += -lpthread
-LIBS_STATIC += /usr/lib/liblua5.1.a -lpthread -lm -ldl
+LIBS_STATIC += /usr/lib/$$(dpkg-architecture -qDEB_HOST_MULTIARCH)/liblua5.1.a -lpthread -lm -ldl
 
 CFLAGS   += $(shell pkg-config --cflags lua5.1)
 LIBS     += $(shell pkg-config --libs lua5.1)
@@ -20,7 +20,7 @@
 OBJECTS=$(SOURCES:.c=.o)
 EXECUTABLE=qcontrol
 
-all:	$(SOURCES) $(EXECUTABLE)
+all:	$(SOURCES) $(EXECUTABLE) $(EXECUTABLE)-static
 
 $(EXECUTABLE): $(OBJECTS)
 	$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@