dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #11818
Re: Mac os x linking error
On Wed, January 21, 2009 00:43, Ola Skavhaug wrote:
> I think this is a scons issue. I will have a look.
Yes, that is probably true.
Andy, could you try the attached patch and see it makes any difference?
Johannes
> 2009/1/20, Harish Narayanan <harish.mlists@xxxxxxxxx>:
>> Andy Ray Terrel wrote:
>>>>> The "u n d e f i n e d d y n a m i c _ l o o k u p" flag seems to
>>>>> creep in no matter how I try to build. I am using mac os x (10.4)
>>>>> with python 2.6 and scons 1.02.
>>>> Are you working with case-sensitive HFS+?
>>>
>>> No, but how would that matter?
>>
>> The reason I asked is because the only time I've run into a similar
>> error was on a case-sensitive file system where the library that was
>> being looked up had some case differences that frustrated OS X.
>>
>> harish
>>
>> _______________________________________________
>> DOLFIN-dev mailing list
>> DOLFIN-dev@xxxxxxxxxx
>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>>
>
> --
> Sendt fra min mobile enhet
>
> Ola Skavhaug
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>
diff -r 03e0aa8010d2 scons/simula-scons/simula_scons/Customize.py
--- a/scons/simula-scons/simula_scons/Customize.py Wed Jan 14 14:00:46 2009 +0100
+++ b/scons/simula-scons/simula_scons/Customize.py Wed Jan 21 09:55:01 2009 +0100
@@ -5,9 +5,9 @@
def darwinCxx(env):
"""Change the cxx parts of env for the Darwin platform"""
- env["CXXFLAGS"] += " -undefined dynamic_lookup"
- env["SHLINKFLAGS"] += " -undefined dynamic_lookup"
- env["LDMODULEFLAGS"] += " -undefined dynamic_lookup"
+ env.Append(CXXFLAGS=" -undefined dynamic_lookup")
+ env.Append(SHLINKFLAGS=" -undefined dynamic_lookup")
+ env.Append(LDMODULEFLAGS=" -undefined dynamic_lookup")
if not env.GetOption("clean"):
# remove /usr/lib if present in LIBPATH.
# there should maybe be some testing here to make sure
@@ -20,7 +20,7 @@
def winCxx(env):
"""Change the cxx parts of env for the Windows platform"""
- env["SHLINKFLAGS"] += " -Wl,--enable-auto-import"
+ env.Append(SHLINKFLAGS=" -Wl,--enable-auto-import")
return env
def darwinSwig(env):
Follow ups
References