Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: libdir should be /lib64/security #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ all: ctest pam_python3.so test-pam_python.pam
WARNINGS=-Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror
#WARNINGS=-Wunreachable-code # Gcc 4.1 .. 4.4 are too buggy to make this useful

LIBDIR ?= /lib/security
LIBDIR ?= /lib64/security

pam_python3.so: pam_python.c setup.py Makefile
@rm -f "$@"
Expand All @@ -30,7 +30,7 @@ ctest: ctest.c Makefile
gcc -O0 $(WARNINGS) -g -o $@ ctest.c -lpam

test-pam_python.pam: test-pam_python.pam.in Makefile
sed "s,\\\$$PWD,$$(pwd),g" "[email protected]" >"[email protected]"
sed "s,\\\$$PWD,$$(pwd),g" "[email protected]" >"[email protected]"
mv [email protected] $@

/etc/pam.d/test-pam_python.pam: test-pam_python.pam
Expand All @@ -42,7 +42,7 @@ test: pam_python3.so ctest /etc/pam.d/test-pam_python.pam
./ctest

test-pam_python-installed.pam: test-pam_python.pam.in Makefile
sed "s,\\\$$PWD/pam-python.so,pam-python.so,;s,\\\$$PWD,$$(pwd),g" "[email protected]" >"[email protected]"
sed "s,\\\$$PWD/pam-python.so,pam-python.so,;s,\\\$$PWD,$$(pwd),g" "[email protected]" >"[email protected]"
mv [email protected] $@

/etc/pam.d/test-pam_python-installed.pam: test-pam_python-installed.pam
Expand Down