(around line 35, after PY_ARRAY_UNIQUE_SYMBOL)
To fix the build problem reported below:
> From: Murali Vadivelu
> Date: 20 November 2005 01:24:13 am GMT
> To: Martin Costabel
> Cc: fink-devel@...
> Subject: Re: [Fink-devel] libscigraphica
> darwin* | rhapsody*)
> # PIC is the default on this platform
> # Common symbols not allowed in MH_DYLIB files
> This is already in there in configure file. Moreover, I have tried
> setting the cfags in the .info file and still get exactly the same
> Any thoughts, please?
> On 19 Nov 2005, at 11:55 pm, Martin Costabel wrote:
>> Murali Vadivelu wrote:
>>> I am trying to create a .info file for this package. However, at
>>> compile stage I get this error from multiply defined symbol
>>> PyarrayXXX. I have tried setting the LDFLAGS to mutliply_defined
>>> suppress. It does not seem to work on either gcc-3.3 or 4.0.1.
>>> Any help, please?
>>> /usr/bin/ld: multiple definitions of symbol _PyArrayXXX
>>> sg.lo definition of _PyArrayXXX in section (__DATA,__common)
>>> sg_config.lo definition of _PyArrayXXX in section (__DATA,__common)
>>> sg_file.lo definition of _PyArrayXXX in section (__DATA,__common)
>> You need to compile object files that go into a dylib with the -
>> fno-common flag. See
>> grep fno-common -r /sw/fink/dists/unstable/main/finkinfo
>> for various different examples how to do this.