From 6a53c0ae6ad615f43adb12dfb380ca6bd642eb26 Mon Sep 17 00:00:00 2001 From: Chris Want Date: Tue, 28 Nov 2006 21:12:31 +0000 Subject: =Scons= I should have talked to joeedh before committing last time... This is an another attempt to fix the mingw long commandline issue on all versions of windows (I didn't realize that the 2k in Win2k refered to the length of the commandline). In this version, I break libsrc.a up so that no archive has more than 30 object files (adjustable with one line of code). I also fudge the priority numbers to ensure correct linking. This was done in a "guess the number" way until it worked, so please test and please check for correctness. --- intern/opennl/SConscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'intern/opennl') diff --git a/intern/opennl/SConscript b/intern/opennl/SConscript index b1cbdeb8ba3..bcfb030f7e6 100644 --- a/intern/opennl/SConscript +++ b/intern/opennl/SConscript @@ -5,5 +5,8 @@ sources = env.Glob('intern/*.c') + env.Glob('superlu/*.c') incs = 'extern superlu' -env.BlenderLib ('blender_ONL', sources, Split(incs), [], libtype='core', priority=55 ) +if (env['OURPLATFORM'] == 'win32-mingw'): + env.BlenderLib ('blender_ONL', sources, Split(incs), [], libtype=['core','intern'], priority=[1,80] ) +else: + env.BlenderLib ('blender_ONL', sources, Split(incs), [], libtype='core', priority=55 ) -- cgit v1.2.3