Skip to content

Commit

Permalink
Debianでmake
Browse files Browse the repository at this point in the history
testが通らなかったので修正。(clover2本体は特に問題が無かった。
  • Loading branch information
ab25cq committed Sep 16, 2017
1 parent 717f74b commit 047526e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -343,5 +343,5 @@ test:
./cclover2 code/anonymous.cl && ./clover2 code/anonymous.clo
gcc -shared -Wl,-soname=libExtTest.so.1 -o libExtTest.so.1.0.0 -I src/ -I . -fPIC ext/hello.c
ln -fs libExtTest.so.1.0.0 libExtTest.so
./cclover2 -class code/ext.clc && ./cclover2 code/ext.cl && ./clover2 code/ext.clo
./cclover2 -class ext.clc && ./cclover2 ext.cl && ./clover2 ext.clo

File renamed without changes.
2 changes: 1 addition & 1 deletion code/ext.clc → ext.clc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ExtTest
def hello(param:int): native static int;

def initialize():static {
dlib:pointer = System.dlopen("libExtTest.so", System.RTLD_LAZY);
dlib:pointer = System.dlopen("./libExtTest.so", System.RTLD_LAZY);

hello_method:pointer = System.dlsym(dlib, "ExtTest_hello");

Expand Down
1 change: 1 addition & 0 deletions src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ static BOOL initialize_class(sCLClass* klass)
memset(&info, 0, sizeof(sVMInfo));

if(!invoke_method(klass, initialize_method, stack, 0, &stack_ptr, &info)) {
show_exception_message(info.exception_message);
MFREE(stack);
return FALSE;
}
Expand Down

0 comments on commit 047526e

Please sign in to comment.