Updated bmk.
authorblitz-research <blitzmunter@gamil.com>
Sat, 26 Sep 2015 00:11:52 +0000 (12:11 +1200)
committerblitz-research <blitzmunter@gamil.com>
Sat, 26 Sep 2015 00:11:52 +0000 (12:11 +1200)
src/bmk/bmk_util.bmx

index ebe65b86484b44b7c920dd4df0eb3ae447e25104..5383aa215b39b34ec7daabb4565c201eed11eb7f 100644 (file)
@@ -161,12 +161,17 @@ Function CompileC( src$,obj$,opts$ )
 '      EndIf
 
 ?Win32
+
+       opts:+" -m32 -ffast-math"
+       
        If Not mod_opts Or Not mod_opts.hasCCopt("-march")
                opts:+" -march=pentium"
        EndIf
-       opts:+" -ffast-math"
+       
 ?Linux
+
        opts:+" -m32 -mfancy-math-387 -fno-strict-aliasing"
+       
 ?
        If mod_opts
                If Not mod_opts.hasCCopt("-fexceptions")
@@ -289,6 +294,9 @@ Function LinkApp( path$,lnk_files:TList,makelib )
        cmd=CQuote(BlitzMaxPath()+"/bin/ld.exe")+" -s -stack 4194304"   'symbol stripping enabled
        If opt_apptype="gui" cmd:+" -subsystem windows"
        If makelib cmd:+" -shared"
+
+'      -m means something else in ld!  
+'      cmd:+" -m32"
        
        cmd:+" -o "+CQuote( path )
        cmd:+" "+CQuote( "-L"+CQuote( BlitzMaxPath()+"/lib" ) )
@@ -325,7 +333,7 @@ Function LinkApp( path$,lnk_files:TList,makelib )
        cmd:+" "+CQuote( tmpfile )
 
        files:+"~n-lgdi32 -lwsock32 -lwinmm -ladvapi32"
-       files:+" -lstdc++ -lgcc -lmingwex -lmingw32 -lmoldname -lmsvcrt -luser32 -lkernel32"
+       files:+" -lstdc++ -lpthread -lgcc -lmingwex -lmingw32 -lmoldname -lmsvcrt -luser32 -lkernel32"
        
        If Not makelib
                files:+" "+CQuote( BlitzMaxPath()+"/lib/crtend.o" )