From b398efd2498c0b41d551f6d7e6dbae4ed379ea66 Mon Sep 17 00:00:00 2001 From: Djomanix Date: Tue, 20 May 2014 14:51:03 -0400 Subject: [PATCH] Modified the generated Makefile for some options, and added a kind of hack for poll. Signed-off-by: Djomanix --- lib/pnacl.nit | 3 +++ src/pnacl_platform.nit | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 -- 1.7.9.5