Skip to content
Browse files

64-bit linux working

  • Loading branch information...
1 parent 0a30cbb commit c3dcc5e3eaf56d3ad0d5926678e03921de308376 @gerald-lindsly committed Oct 29, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 makefile
View
5 makefile
@@ -2,7 +2,10 @@ OBJS=DllMain.o bson.o mongo.o net.o gridfs.o md5.o encoding.o numbers.o api_bson
CC=gcc-4.3
MATLAB=/usr/local/MATLAB/R2011b
INCPATH=$(MATLAB)/extern/include
-LIBS=-L$(MATLAB)/bin/glnx86 -lmex -lmx
+ARCH := $(shell getconf LONG_BIT)
+LIB_32=-L$(MATLAB)/bin/glnx86
+LIB_64=-L$(MATLAB)/bin/glnxa64
+LIBS=$(LIB_$(ARCH)) -lmex -lmx
CFLAGS=-Wall -fPIC -I$(INCPATH) -DMONGO_HAVE_STDINT
.c.o:

0 comments on commit c3dcc5e

Please sign in to comment.
Something went wrong with that request. Please try again.