otpw: really fix compilation/linkage for real.
This commit is contained in:
parent
25af1650fd
commit
9e9410c3e7
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'otpw'
|
||||
pkgname=otpw
|
||||
version=1.5
|
||||
revision=2
|
||||
revision=3
|
||||
conf_files="/etc/pam.d/ssh-otpw"
|
||||
makedepends="pam-devel"
|
||||
short_desc="A one-time password login package"
|
||||
|
@ -12,8 +12,8 @@ distfiles="https://www.cl.cam.ac.uk/%7Emgk25/download/otpw-${version}.tar.gz"
|
|||
checksum=98aca38a61c7713677b96f24426ca7053480c0fd077d91b1e99bc9f92ccb832a
|
||||
|
||||
do_build() {
|
||||
sed -i "/ld --shared/s,ld,$LD," Makefile
|
||||
make CC=$CC LD=$LD CFLAGS="$CFLAGS -fPIC" LDFLAGS="$LDFLAGS" ${makejobs}
|
||||
sed -i "s|ld --shared|$CC -shared|" Makefile
|
||||
make CC=$CC LD=$LD CFLAGS="$CFLAGS -fPIC" ${makejobs}
|
||||
}
|
||||
do_install() {
|
||||
vinstall pam_otpw.so 755 /usr/lib/security
|
||||
|
|
Loading…
Reference in New Issue