mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
From: Jeff Mahoney <jeffm@suse.com>
Subject: adjust includes for pam_apparmor to point at the intree version of libapparmor, rather than depend on an external version to be installed.
This commit is contained in:
parent
09edd269aa
commit
37ac8ede4f
@ -26,8 +26,8 @@ common/Make.rules: $(COMMONDIR)/Make.rules
|
|||||||
ln -sf $(COMMONDIR) .
|
ln -sf $(COMMONDIR) .
|
||||||
endif
|
endif
|
||||||
|
|
||||||
EXTRA_CFLAGS=$(CFLAGS) -fPIC -shared -Wall
|
EXTRA_CFLAGS=$(CFLAGS) -fPIC -shared -Wall -I../../libraries/libapparmor/src/
|
||||||
LINK_FLAGS=-Xlinker -x
|
LINK_FLAGS=-Xlinker -x -L../../libraries/libapparmor/src/.libs
|
||||||
LIBS=-lpam -lapparmor
|
LIBS=-lpam -lapparmor
|
||||||
OBJECTS=${NAME}.o get_options.o
|
OBJECTS=${NAME}.o get_options.o
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ $(NAME).so: ${OBJECTS}
|
|||||||
|
|
||||||
# need some better way of determining this
|
# need some better way of determining this
|
||||||
DESTDIR=/
|
DESTDIR=/
|
||||||
SECDIR=${DESTDIR}/lib/security
|
SECDIR ?= ${DESTDIR}/lib/security
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: $(NAME).so
|
install: $(NAME).so
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/apparmor.h>
|
#include <apparmor.h>
|
||||||
#include <security/pam_ext.h>
|
#include <security/pam_ext.h>
|
||||||
#include <security/pam_modutil.h>
|
#include <security/pam_modutil.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user