Skip to content
Newer
Older
100644 12 lines (10 sloc) 458 Bytes
9ce75d1 @jnthn Add a library that can compile very simple C libraries for usage duri…
authored Jan 13, 2012
1 module t::CompileTestLib;
2
3 sub compile_test_lib($name) is export {
4 my $o = $*VM<config><o>;
5 my $so = $*VM<config><load_ext>;
7ec2386 @moritz [t] fix compilation of shared libraries with GCC
moritz authored Jan 16, 2012
6 my $c_line = "$*VM<config><cc> -c $*VM<config><cc_shared> $*VM<config><cc_o_out>$name$o $*VM<config><ccflags> t/$name.c";
4352fca @arnsholt Fix braino. moritz++
arnsholt authored Apr 6, 2012
7 my $l_line = "$*VM<config><ld> $*VM<config><ld_load_flags> $*VM<config><ldflags> " ~
9ce75d1 @jnthn Add a library that can compile very simple C libraries for usage duri…
authored Jan 13, 2012
8 "$*VM<config><libs> $*VM<config><ld_out>$name$so $name$o";
9 shell($c_line);
10 shell($l_line);
11 }
Something went wrong with that request. Please try again.