PACKAGE_CPP_OPTS += -DHAVE_LIBMINGWEX
endif
+ifeq "$(GhciWithDebugger)" "YES"
+STANDARD_OPTS += -DDEBUGGER
+endif
+
ifeq "$(DotnetSupport)" "YES"
#
#-----------------------------------------------------------------------------
# Add PAPI library if needed
-ifeq "$(USE_PAPI)" "YES"
-SRC_HC_OPTS += -lpapi -optc-DUSE_PAPI
+ifeq "$(GhcRtsWithPapi)" "YES"
+SRC_HC_OPTS += -optc-DUSE_PAPI
PACKAGE_CPP_OPTS += -DUSE_PAPI
endif