Modified the generated Makefile for some options,
authorDjomanix <johan.kayser@viacesi.fr>
Tue, 20 May 2014 18:51:03 +0000 (14:51 -0400)
committerDjomanix <johan.kayser@viacesi.fr>
Tue, 20 May 2014 18:51:03 +0000 (14:51 -0400)
and added a kind of hack for poll.

Signed-off-by: Djomanix <johan.kayser@viacesi.fr>

lib/pnacl.nit
src/pnacl_platform.nit

index c7fb2ab..ef149b1 100644 (file)
@@ -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.
index 6fc7073..6dfdc3a 100644 (file)
@@ -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