mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
parser: fix partial compilation of C++ files
With the move to C++-ification of the parser, the parser's makefile was not updated to take into account .cc files when deriving object files. This would result in the final linking compilation of the parser binary including all of the .cc files in its command line, rather than the ,o files. This patch fixes the issue as well as an additional typo in the dependency list for af_unix.o that was not triggered because af_unix.o was not being built independently. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
862bbb91eb
commit
297716d7e7
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ HDRS = parser.h parser_include.h immunix.h mount.h dbus.h lib.h profile.h \
|
|||
rule.h common_optarg.h signal.h ptrace.h network.h af_rule.h af_unix.h
|
||||
TOOLS = apparmor_parser
|
||||
|
||||
OBJECTS = $(SRCS:.c=.o)
|
||||
OBJECTS = $(patsubst %.cc, %.o, $(SRCS:.c=.o))
|
||||
|
||||
AAREDIR= libapparmor_re
|
||||
AAREOBJECT = ${AAREDIR}/libapparmor_re.a
|
||||
|
@ -258,7 +258,7 @@ network.o: network.c network.h parser.h immunix.h parser_yacc.h rule.h af_names.
|
|||
af_rule.o: af_rule.cc af_rule.h network.h parser.h profile.h immunix.h parser_yacc.h rule.h $(APPARMOR_H)
|
||||
$(CXX) $(EXTRA_CFLAGS) -c -o $@ $<
|
||||
|
||||
af_unix.o: af_unix.cc af_unix.h network.h af_rule.h parser.h profile.h immunix.h parser_y $(APPARMOR_H)
|
||||
af_unix.o: af_unix.cc af_unix.h network.h af_rule.h parser.h profile.h immunix.h parser_yacc.h $(APPARMOR_H)
|
||||
$(CXX) $(EXTRA_CFLAGS) -c -o $@ $<
|
||||
|
||||
profile.o: profile.cc profile.h parser.h network.h
|
||||
|
|
Loading…
Add table
Reference in a new issue