better erlang detection

This commit is contained in:
roberto@precise64
2012-02-11 17:20:47 +01:00
parent 32ad0a7b87
commit e1f00cbf96
+10 -2
View File
@@ -1,7 +1,15 @@
import os
NAME='erlang'
CFLAGS = []
LDFLAGS = []
ERLANGPATH = os.environ.get('UWSGICONFIG_ERLANGPATH', 'erl')
includedir = os.popen(ERLANGPATH + " -noshell -noinput -eval \"io:format('~s~n', [code:lib_dir(erl_interface, include)])\" -s erlang halt").read().rstrip()
libpath = os.popen(ERLANGPATH + " -noshell -noinput -eval \"io:format('~s~n', [code:lib_dir(erl_interface, lib)])\" -s erlang halt").read().rstrip()
CFLAGS = [ '-I' + includedir ]
LDFLAGS = [ '-L' + libpath ]
LIBS = ['-lei']
GCC_LIST = ['erlang']