diff --git a/changehat/pam_apparmor/Makefile b/changehat/pam_apparmor/Makefile index c1ec8ac12..04fe0a263 100644 --- a/changehat/pam_apparmor/Makefile +++ b/changehat/pam_apparmor/Makefile @@ -26,8 +26,8 @@ common/Make.rules: $(COMMONDIR)/Make.rules ln -sf $(COMMONDIR) . endif -EXTRA_CFLAGS=$(CFLAGS) -fPIC -shared -Wall -LINK_FLAGS=-Xlinker -x +EXTRA_CFLAGS=$(CFLAGS) -fPIC -shared -Wall -I../../libraries/libapparmor/src/ +LINK_FLAGS=-Xlinker -x -L../../libraries/libapparmor/src/.libs LIBS=-lpam -lapparmor OBJECTS=${NAME}.o get_options.o @@ -41,7 +41,7 @@ $(NAME).so: ${OBJECTS} # need some better way of determining this DESTDIR=/ -SECDIR=${DESTDIR}/lib/security +SECDIR ?= ${DESTDIR}/lib/security .PHONY: install install: $(NAME).so diff --git a/changehat/pam_apparmor/pam_apparmor.c b/changehat/pam_apparmor/pam_apparmor.c index 21c323f8f..1a79d8aff 100644 --- a/changehat/pam_apparmor/pam_apparmor.c +++ b/changehat/pam_apparmor/pam_apparmor.c @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include