summaryrefslogtreecommitdiff
blob: c9638a7d0bb40d59558226f37ca2727f468b377d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- Makefile	2008-11-06 21:09:54.000000000 +0100
+++ Makefile.new	2010-09-04 21:48:57.941604821 +0200
@@ -1,11 +1,11 @@
 libjbigi:
 	cd jbigi && rm -f jbigi.o libjbigi.so && $(CC) $(CFLAGS) -c -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \
-	jbigi/src/jbigi.c && $(CC) -shared -Wl,-soname,libjbigi.so -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -lgmp \
+	jbigi/src/jbigi.c && $(CC) ${LDFLAGS} -shared -Wl,-soname,libjbigi.so -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -lgmp \
 	-o libjbigi.so jbigi.o
 
 
 libjcpuid:
-	cd jcpuid && $(CC) $(CFLAGS) -shared -Wl,-soname,libjbigi-x86-linux.so -I. -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \
+	cd jcpuid && $(CC) $(CFLAGS) ${LDFLAGS} -shared -Wl,-soname,libjbigi-x86-linux.so -I. -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \
 	src/*.c -o libjcpuid-x86-linux.so
 
 install: