Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more osx fixes

  • Loading branch information...
commit 65c890b945e75ae4787ab12a46c1c30a2e730794 1 parent 02053e1
@oransel authored
Showing with 12 additions and 4 deletions.
  1. +3 −0  HISTORY
  2. +1 −1  package.json
  3. +7 −2 src/lib/build.js
  4. +1 −1  src/talib.cpp
View
3  HISTORY
@@ -1,3 +1,6 @@
+0.2.5 2012-02-29:
+ Fixes OS X builds
+
0.2.1 2012-01-29:
Fixes explain function crashes
View
2  package.json
@@ -2,7 +2,7 @@
"author": "Mustafa Oransel",
"name": "talib",
"description": "Technical Analysis Library",
- "version": "0.2.4",
+ "version": "0.2.5",
"homepage":"https://github.com/oransel/node-talib",
"repository": {
"type":"git",
View
9 src/lib/build.js
@@ -1,4 +1,9 @@
var exec = require('child_process').exec;
-var arch = process.arch == 'ia32' ? 'i386' : process.arch == 'x64' ? 'x86_64' : process.arch;
+
console.log('building talib functions...');
-exec('export CFLAGS="-arch ' + arch + '" && export LDFLAGS="-arch ' + arch + '" && ./configure && make ARCH=' + arch);
+var flags = "";
+if (process.platform == 'darwin') {
+ var arch = process.arch == 'ia32' ? 'i386' : process.arch == 'x64' ? 'x86_64' : process.arch;
+ flags = 'export CFLAGS="-arch ' + arch + '" && export LDFLAGS="-arch ' + arch + '" && ';
+}
+exec(flags + './configure && make');
View
2  src/talib.cpp
@@ -74,7 +74,7 @@ class Talib : ObjectWrap {
persistent_function_template->SetClassName(String::NewSymbol("TALib"));
// Define fields
- target->Set(String::New("version"), String::New("0.2.1"));
+ target->Set(String::New("version"), String::New("0.2.5"));
// Define accessors
target->SetAccessor(String::New("functions"), GetFunctions, NULL);
Please sign in to comment.
Something went wrong with that request. Please try again.