comparison ruby/rbdc/extconf.rb @ 25:02a455de2b40

- 1.0 updates
author Tassilo Philipp
date Tue, 24 Apr 2018 16:04:37 +0200
parents 80273969f043
children
comparison
equal deleted inserted replaced
24:681db37a300c 25:02a455de2b40
1 #////////////////////////////////////////////////////////////////////// 1 #//////////////////////////////////////////////////////////////////////
2 # 2 #
3 # extconf.rb 3 # extconf.rb
4 # Copyright (c) 2007-2015 Daniel Adler <dadler@uni-goettingen.de>, 4 # Copyright (c) 2007-2018 Daniel Adler <dadler@uni-goettingen.de>,
5 # Tassilo Philipp <tphilipp@potion-studios.com> 5 # Tassilo Philipp <tphilipp@potion-studios.com>
6 # 6 #
7 # Permission to use, copy, modify, and distribute this software for any 7 # Permission to use, copy, modify, and distribute this software for any
8 # purpose with or without fee is hereby granted, provided that the above 8 # purpose with or without fee is hereby granted, provided that the above
9 # copyright notice and this permission notice appear in all copies. 9 # copyright notice and this permission notice appear in all copies.
33 # Build dyncall libs. 33 # Build dyncall libs.
34 puts 'Building dyncall libraries:' 34 puts 'Building dyncall libraries:'
35 Dir.chdir(base_dir) do 35 Dir.chdir(base_dir) do
36 cmd = case 36 cmd = case
37 when RUBY_PLATFORM =~ /mswin/ then 'configure.bat && nmake /f Nmakefile' 37 when RUBY_PLATFORM =~ /mswin/ then 'configure.bat && nmake /f Nmakefile'
38 else './configure && env CFLAGS="-fPIC" make' 38 else './configure && make'
39 end 39 end
40 puts cmd 40 puts cmd
41 raise "'#{cmd}' failed" unless system(cmd) 41 raise "'#{cmd}' failed" unless system(cmd)
42 end 42 end
43 43