summaryrefslogtreecommitdiff
blob: 7f9d194e32432946899cda76803692abc6e1aaac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- Makefile.orig	2004-05-05 03:07:47.000000000 +0300
+++ Makefile	2007-07-12 22:57:23.000000000 +0300
@@ -1,16 +1,15 @@
 # $Id: pam_chroot-0.9.1-makefile.patch,v 1.1 2007/07/12 20:38:39 hawking Exp $
 
 CC=gcc
-CFLAGS=-fPIC -O2 -Wall -Werror -pedantic
+CFLAGS:=-fPIC -Wall -Werror -pedantic $(CFLAGS)
 CPPFLAGS=-I.
-LDFLAGS=-x --shared -lpam
 
 OUT=pam_chroot.so
 
 all:	$(OUT)
 
 %.so: %.o
-	ld $(LDFLAGS) -o $@ $<
+	$(LD) -x --shared $(LDFLAGS) -o $@ $< -lpam
 
 clean:
 	rm -f *.o $(OUT)