Skip to content

Commit d208a97

Browse files
tpruvotPonsAsinorem
authored andcommitted
build: ignore selibs pkgconfig on android builds
This cause errors and is not required Change-Id: If6cc6fb1595e83fac452d8a28cb4b8d250dff06d
1 parent f475bda commit d208a97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile.flags

+2
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,13 @@ LDLIBS += pam pam_misc pthread
138138
endif
139139

140140
ifeq ($(CONFIG_SELINUX),y)
141+
ifeq ($(ANDROID_PRODUCT_OUT),) # Ignore pkgconfig on Android Builds
141142
SELINUX_PC_MODULES = libselinux libsepol
142143
$(eval $(call pkg_check_modules,SELINUX,$(SELINUX_PC_MODULES)))
143144
CPPFLAGS += $(SELINUX_CFLAGS)
144145
LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%))
145146
endif
147+
endif
146148

147149
ifeq ($(CONFIG_EFENCE),y)
148150
LDLIBS += efence

0 commit comments

Comments
 (0)