mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Change the compilation ordering in the regression testsuite as the
toolchain has gotten stricter about linking order; in short, linked libraries need to come after the objects referring to them. Adding to LDLIBS is the correct solution for this. See https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition for more details.
This commit is contained in:
parent
cb96345f21
commit
0e87acb318
1 changed files with 3 additions and 2 deletions
|
@ -100,7 +100,8 @@ LIBIMMUNIX:=$(shell if [ -f /usr/lib/libapparmor.so -o -f /usr/lib64/libapparmor
|
|||
echo -limmunix ; \
|
||||
fi )
|
||||
|
||||
CFLAGS+=$(CHANGEHAT_FLAGS) $(LIBIMMUNIX) -Wall -Wstrict-prototypes
|
||||
CFLAGS+=$(CHANGEHAT_FLAGS) -Wall -Wstrict-prototypes
|
||||
LDLIBS+=$(LIBIMMUNIX)
|
||||
|
||||
EXEC=$(SRC:%.c=%)
|
||||
|
||||
|
@ -153,7 +154,7 @@ RISKY_TESTS=
|
|||
all: $(EXEC) changehat.h
|
||||
|
||||
changehat_pthread: changehat_pthread.c changehat.h
|
||||
${CC} ${CFLAGS} -lpthread -o $@ $<
|
||||
${CC} ${CFLAGS} ${LDFLAGS} $< -o $@ ${LDLIBS} -pthread
|
||||
|
||||
tests: all
|
||||
@if [ `whoami` = "root" ] ;\
|
||||
|
|
Loading…
Add table
Reference in a new issue