Skip to content

Instantly share code, notes, and snippets.

@vertiginous
Created January 21, 2011 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vertiginous/790160 to your computer and use it in GitHub Desktop.
Save vertiginous/790160 to your computer and use it in GitHub Desktop.
rm -r tmp
mkdir -p tmp
windres -DCUI src/exerb/resource.rc tmp/resource_cui.o
(in C:/Users/gthiesfeld/Work/repo/exerb-mingw)
Temporarily enhancing PATH to include DevKit...
mkdir -p tmp/patched
mkdir -p tmp
gcc -g -O2 -DFD_SETSIZE=256 -DRUBY_EXPORT -Isrc/mingw -IC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib/ruby/1.8/i386-mingw32 -Isrc/mingw187 -c -o tmp/eval.o tmp/patched/eval.c
tmp/patched/eval.c: In function 'rb_eval_string_wrap':
tmp/patched/eval.c:1744:5: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'rb_eval_cmd':
tmp/patched/eval.c:1885:5: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'call_trace_func':
tmp/patched/eval.c:2736:5: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'rb_raise_jump':
tmp/patched/eval.c:4770:2: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'method_missing':
tmp/patched/eval.c:5736:2: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'rb_call0':
tmp/patched/eval.c:5894:5: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'rb_f_eval':
tmp/patched/eval.c:6696:2: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'exec_under':
tmp/patched/eval.c:6720:5: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'rb_load':
tmp/patched/eval.c:7036:5: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'call_end_proc':
tmp/patched/eval.c:8071:5: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'rb_f_END':
tmp/patched/eval.c:8084:5: warning: assignment discards qualifiers from pointer target type
tmp/patched/eval.c: In function 'mproc':
tmp/patched/eval.c:9860:5: warning: assignment discards qualifiers from pointer target type
mkdir -p tmp/patched
mkdir -p tmp
gcc -g -O2 -DFD_SETSIZE=256 -DRUBY_EXPORT -Isrc/mingw -IC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib/ruby/1.8/i386-mingw32 -Isrc/mingw187 -c -o tmp/variable.o tmp/patched/variable.c
mkdir -p tmp
windres -DRUNTIME src/exerb/resource.rc tmp/resource_dll.o
mkdir -p tmp
mkdir -p tmp
mkdir -p data/exerb
gcc -g -O2 -DFD_SETSIZE=256 -DRUBY_EXPORT -Isrc/mingw -IC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib/ruby/1.8/i386-mingw32 -Isrc/mingw187 -LC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib -Wl,--stack,0x02000000 -shared -Wl,--enable-auto-image-base,--enable-auto-import,--export-all -Wl,--out-implib=tmp/exerb50.dll.a -Wl,--output-def=tmp/exerb50.def -s -o data/exerb/exerb50.dll tmp/resource_dll.o src/exerb/exerb.cpp src/exerb/module.cpp src/exerb/utility.cpp tmp/eval.o tmp/variable.o -lmsvcrt-ruby18-static -lshell32 -lws2_32 -lstdc++ -static-libgcc -static-libstdc++
src/exerb/exerb.cpp: In function 'int exerb_main(int, char**, void (*)(VALUE, VALUE, VALUE), void (*)(VALUE))':
src/exerb/exerb.cpp:103:33: warning: deprecated conversion from string constant to 'char*'
src/exerb/exerb.cpp: At global scope:
src/exerb/exerb.cpp:307:45: warning: deprecated conversion from string constant to 'char*'
src/exerb/exerb.cpp:307:45: warning: deprecated conversion from string constant to 'char*'
src/exerb/exerb.cpp:307:45: warning: deprecated conversion from string constant to 'char*'
src/exerb/utility.cpp: In function 'void* exerb_fopen_for_read(const char*)':
src/exerb/utility.cpp:30:101: warning: passing NULL to non-pointer argument 6 of 'void* CreateFileA(const CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
src/exerb/utility.cpp: In function 'void* exerb_fopen_for_write(const char*)':
src/exerb/utility.cpp:39:102: warning: passing NULL to non-pointer argument 6 of 'void* CreateFileA(const CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
Creating library file: tmp/exerb50.dll.a
gcc: unrecognized option '-static-libstdc++'
mkdir -p data/exerb
gcc -g -O2 -DFD_SETSIZE=256 -DRUBY_EXPORT -Isrc/mingw -IC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib/ruby/1.8/i386-mingw32 -Isrc/mingw187 -LC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib -Wl,--stack,0x02000000 -s -o data/exerb/ruby187c.exc src/exerb/cui.cpp tmp/resource_cui.o src/exerb/exerb.cpp src/exerb/module.cpp src/exerb/utility.cpp tmp/eval.o tmp/variable.o tmp/exerb50.def -lmsvcrt-ruby18-static -lshell32 -lws2_32 -lstdc++ -static-libgcc -static-libstdc++
src/exerb/exerb.cpp: In function 'int exerb_main(int, char**, void (*)(VALUE, VALUE, VALUE), void (*)(VALUE))':
src/exerb/exerb.cpp:103:33: warning: deprecated conversion from string constant to 'char*'
src/exerb/exerb.cpp: At global scope:
src/exerb/exerb.cpp:307:45: warning: deprecated conversion from string constant to 'char*'
src/exerb/exerb.cpp:307:45: warning: deprecated conversion from string constant to 'char*'
src/exerb/exerb.cpp:307:45: warning: deprecated conversion from string constant to 'char*'
src/exerb/utility.cpp: In function 'void* exerb_fopen_for_read(const char*)':
src/exerb/utility.cpp:30:101: warning: passing NULL to non-pointer argument 6 of 'void* CreateFileA(const CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
src/exerb/utility.cpp: In function 'void* exerb_fopen_for_write(const char*)':
src/exerb/utility.cpp:39:102: warning: passing NULL to non-pointer argument 6 of 'void* CreateFileA(const CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
gcc: unrecognized option '-static-libstdc++'
strip -R .reloc data/exerb/ruby187c.exc
mkdir -p tmp
mkdir -p data/exerb
gcc -g -O2 -DFD_SETSIZE=256 -DRUBY_EXPORT -Isrc/mingw -IC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib/ruby/1.8/i386-mingw32 -Isrc/mingw187 -LC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib -Wl,--stack,0x02000000 -s -o data/exerb/ruby187crt.exc src/exerb/cui.cpp tmp/resource_cui.o tmp/exerb50.dll.a tmp/exerb50_rt.def -lshell32 -lws2_32 -lstdc++ -static-libgcc -static-libstdc++
gcc: unrecognized option '-static-libstdc++'
strip -R .reloc data/exerb/ruby187crt.exc
mkdir -p tmp
windres -DGUI src/exerb/resource.rc tmp/resource_gui.o
mkdir -p data/exerb
gcc -g -O2 -DFD_SETSIZE=256 -DRUBY_EXPORT -Isrc/mingw -IC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib/ruby/1.8/i386-mingw32 -Isrc/mingw187 -LC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib -Wl,--stack,0x02000000 -mwindows -s -o data/exerb/ruby187g.exc src/exerb/gui.cpp tmp/resource_gui.o src/exerb/exerb.cpp src/exerb/module.cpp src/exerb/utility.cpp tmp/eval.o tmp/variable.o tmp/exerb50.def -lmsvcrt-ruby18-static -lshell32 -lws2_32 -lstdc++ -static-libgcc -static-libstdc++
src/exerb/exerb.cpp: In function 'int exerb_main(int, char**, void (*)(VALUE, VALUE, VALUE), void (*)(VALUE))':
src/exerb/exerb.cpp:103:33: warning: deprecated conversion from string constant to 'char*'
src/exerb/exerb.cpp: At global scope:
src/exerb/exerb.cpp:307:45: warning: deprecated conversion from string constant to 'char*'
src/exerb/exerb.cpp:307:45: warning: deprecated conversion from string constant to 'char*'
src/exerb/exerb.cpp:307:45: warning: deprecated conversion from string constant to 'char*'
src/exerb/utility.cpp: In function 'void* exerb_fopen_for_read(const char*)':
src/exerb/utility.cpp:30:101: warning: passing NULL to non-pointer argument 6 of 'void* CreateFileA(const CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
src/exerb/utility.cpp: In function 'void* exerb_fopen_for_write(const char*)':
src/exerb/utility.cpp:39:102: warning: passing NULL to non-pointer argument 6 of 'void* CreateFileA(const CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
gcc: unrecognized option '-static-libstdc++'
strip -R .reloc data/exerb/ruby187g.exc
mkdir -p data/exerb
gcc -g -O2 -DFD_SETSIZE=256 -DRUBY_EXPORT -Isrc/mingw -IC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib/ruby/1.8/i386-mingw32 -Isrc/mingw187 -LC:/Users/gthiesfeld/.pik/rubies/Ruby-187-p330/lib -Wl,--stack,0x02000000 -mwindows -s -o data/exerb/ruby187grt.exc src/exerb/gui.cpp tmp/resource_gui.o tmp/exerb50.dll.a tmp/exerb50_rt.def -lshell32 -lws2_32 -lstdc++ -static-libgcc -static-libstdc++
gcc: unrecognized option '-static-libstdc++'
strip -R .reloc data/exerb/ruby187grt.exc
diff --git a/Rakefile b/Rakefile
index e971601..eeb049d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -70,7 +70,7 @@ end
C.ldflags = "-L#{c['libdir']}"
C.xldflags = "#{c['XLDFLAGS'] || '-Wl,--stack,0x02000000'}"
C.rubylib = "#{c['LIBRUBYARG_STATIC']}"
-C.libs = "#{c['LIBS']} -lstdc++"
+C.libs = "#{c['LIBS']} -lstdc++ -static-libgcc -static-libstdc++"
C.ver = RUBY_VERSION.gsub('.','')
C.src_dir = "src/mingw#{C.ver}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment