minigbm: cros_gralloc: Use pkg-config for LIBS
This changes the Makefile to use pkg-config to query for necessary library paths and names instead of hardcoding -ldrm. BUG=b:36540057 TEST=emerge-reef arc-cros-gralloc with multilib patches CQ-DEPEND=CL:505794 Change-Id: Id223203506d71b3966e9730f92badb461eb6cb1b Reviewed-on: https://chromium-review.googlesource.com/499971 Commit-Ready: Tomasz Figa <tfiga@chromium.org> Tested-by: Tomasz Figa <tfiga@chromium.org> Reviewed-by: Luis Hector Chavez <lhchavez@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
This commit is contained in:
parent
5272e812b5
commit
51de1f529f
1 changed files with 2 additions and 2 deletions
|
|
@ -11,12 +11,12 @@ PKG_CONFIG ?= pkg-config
|
|||
|
||||
VPATH = $(dir $(SOURCES))
|
||||
LIBDRM_CFLAGS := $(shell $(PKG_CONFIG) --cflags libdrm)
|
||||
LIBDRM_LIBS := $(shell $(PKG_CONFIG) --libs libdrm)
|
||||
|
||||
CPPFLAGS += -Wall -fPIC -Werror -flto $(LIBDRM_CFLAGS)
|
||||
CXXFLAGS += -std=c++11
|
||||
CFLAGS += -std=c99
|
||||
# TODO(gurchetansingh): Switch to pkg-config.
|
||||
LIBS += -shared -lcutils -lhardware -ldrm
|
||||
LIBS += -shared -lcutils -lhardware $(LIBDRM_LIBS)
|
||||
|
||||
OBJS = $(foreach source, $(SOURCES), $(addsuffix .o, $(basename $(source))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue