summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Polatel <hawking@gentoo.org>2007-07-12 20:38:39 +0000
committerAli Polatel <hawking@gentoo.org>2007-07-12 20:38:39 +0000
commitec9aacc80622ae21df8e44578ab9abf7414321ea (patch)
tree158552ce66ebd0248f1bdb622785f155040ff762 /sys-auth/pam_chroot/files
parent* bump (diff)
downloadgentoo-2-ec9aacc80622ae21df8e44578ab9abf7414321ea.tar.gz
gentoo-2-ec9aacc80622ae21df8e44578ab9abf7414321ea.tar.bz2
gentoo-2-ec9aacc80622ae21df8e44578ab9abf7414321ea.zip
Respect $LD and $LDFLAGS (bug #185050)
(Portage version: 2.1.3_rc8)
Diffstat (limited to 'sys-auth/pam_chroot/files')
-rw-r--r--sys-auth/pam_chroot/files/pam_chroot-0.9.1-makefile.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-auth/pam_chroot/files/pam_chroot-0.9.1-makefile.patch b/sys-auth/pam_chroot/files/pam_chroot-0.9.1-makefile.patch
new file mode 100644
index 000000000000..7f9d194e3243
--- /dev/null
+++ b/sys-auth/pam_chroot/files/pam_chroot-0.9.1-makefile.patch
@@ -0,0 +1,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)