Skip to content

Commit

Permalink
eigen: fix build, pkg-config problem
Browse files Browse the repository at this point in the history
  • Loading branch information
cirosantilli committed Jun 3, 2018
1 parent 975ce07 commit a4bdcf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel_module/user/Makefile
Expand Up @@ -8,7 +8,11 @@ OUT_EXT ?= .out

OUTS := $(foreach IN_EXT,$(IN_EXT_C) $(IN_EXT_CXX),$(addsuffix $(OUT_EXT), $(basename $(wildcard *$(IN_EXT)))))
ifeq ($(BR2_PACKAGE_EIGEN),y)
CXXFLAGS_EXTRA += $(shell $(PKG_CONFIG) --cflags --libs eigen3)
CXXFLAGS_EXTRA += -I$(STAGING_DIR)/usr/include/eigen3
# TODO: was failing with:
# fatal error: Eigen/Dense: No such file or directory as of
# 975ce0723ee3fa1fea1766e6683e2f3acb8558d6
#CXXFLAGS_EXTRA += $(shell $(PKG_CONFIG) --cflags eigen3)
else
OUTS := $(filter-out eigen_%$(OUT_EXT),$(OUTS))
endif
Expand Down

0 comments on commit a4bdcf1

Please sign in to comment.