From: Djomanix Date: Tue, 20 May 2014 18:51:03 +0000 (-0400) Subject: Modified the generated Makefile for some options, X-Git-Tag: v0.6.6~60^2 X-Git-Url: http://nitlanguage.org Modified the generated Makefile for some options, and added a kind of hack for poll. Signed-off-by: Djomanix --- diff --git a/lib/pnacl.nit b/lib/pnacl.nit index c7fb2ab..ef149b1 100644 --- a/lib/pnacl.nit +++ b/lib/pnacl.nit @@ -151,6 +151,9 @@ module pnacl is platform } return NULL; } + + // Hack poll + int poll(void *fds, int nfds, int timeout) { return 0; } `} # Nit class representing a Pepper C API PP_Var typed as a Dictionary. diff --git a/src/pnacl_platform.nit b/src/pnacl_platform.nit index 6fc7073..6dfdc3a 100644 --- a/src/pnacl_platform.nit +++ b/src/pnacl_platform.nit @@ -93,8 +93,8 @@ OSNAME := $(shell $(GETOS)) PNACL_TC_PATH := $(abspath $(NACL_SDK_ROOT)/toolchain/$(OSNAME)_pnacl) PNACL_CXX := $(PNACL_TC_PATH)/bin/pnacl-clang PNACL_FINALIZE := $(PNACL_TC_PATH)/bin/pnacl-finalize -CXXFLAGS += -I$(NACL_SDK_ROOT)/include -LDFLAGS := -L$(NACL_SDK_ROOT)/lib/pnacl/Release -lppapi_cpp -lppapi +CXXFLAGS += -I$(NACL_SDK_ROOT)/include -I$(NACL_SDK_ROOT)/include/pnacl +LDFLAGS := -L$(NACL_SDK_ROOT)/lib/pnacl/Release -lppapi_cpp -lppapi -lm # # Disable DOS PATH warning when using Cygwin based tools Windows