diff options
Diffstat (limited to 'sccomp')
-rw-r--r-- | sccomp/Library_solver.mk | 10 | ||||
-rw-r--r-- | sccomp/Module_sccomp.mk | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sccomp/Library_solver.mk b/sccomp/Library_solver.mk index e1b2ca3fdfeb..c5531059bc79 100644 --- a/sccomp/Library_solver.mk +++ b/sccomp/Library_solver.mk @@ -35,11 +35,19 @@ $(eval $(call gb_Library_use_libraries,solver,\ $(eval $(call gb_Library_use_externals,solver,\ boost_headers \ - lpsolve \ + $(WITH_LPSOLVER) \ )) +ifeq ($(WITH_LPSOLVER),lpsolve) $(eval $(call gb_Library_add_exception_objects,solver,\ sccomp/source/solver/solver-lpsolve \ )) +else ifeq ($(WITH_LPSOLVER),coinmp) +$(eval $(call gb_Library_add_exception_objects,solver,\ + sccomp/source/solver/solver \ +)) + +endif + # vim: set noet sw=4 ts=4: diff --git a/sccomp/Module_sccomp.mk b/sccomp/Module_sccomp.mk index dd56f872ecac..d250e3b574de 100644 --- a/sccomp/Module_sccomp.mk +++ b/sccomp/Module_sccomp.mk @@ -19,7 +19,7 @@ $(eval $(call gb_Module_Module,sccomp)) -ifeq ($(ENABLE_LPSOLVE),TRUE) +ifneq ($(WITH_LPSOLVER),) $(eval $(call gb_Module_add_targets,sccomp,\ Library_solver \ |