(self, filename, outfile='libside.so', cflags=None)
| 2907 | self.set_setting('MAIN_MODULE', 2) |
| 2908 | |
| 2909 | def build_dlfcn_lib(self, filename, outfile='libside.so', cflags=None): |
| 2910 | self.clear_setting('MAIN_MODULE') |
| 2911 | self.set_setting('SIDE_MODULE') |
| 2912 | cmd = [compiler_for(filename), filename, '-o', outfile] + self.get_cflags() |
| 2913 | if cflags: |
| 2914 | cmd += cflags |
| 2915 | self.run_process(cmd) |
| 2916 | |
| 2917 | @needs_dylink |
| 2918 | @no_js_math('JS_MATH is not compatible with MAIN_MODULE=1') |
no test coverage detected