On 4/6/13 8:43 AM, Daniel Macks wrote:
> On Sat, 6 Apr 2013 13:00:55 +0200, Peter Dyballa
> <[email protected]> wrote:
>
>> Am 06.04.2013 um 11:31 schrieb Martin Costabel:
>>
>>> -I/usr/include -I/usr/X11/include -I/opt/X11/include If it's that
>> simple – and I'm starting to believe that – then it would be
>> useful to patch the make system to have
>>
>> -idirafter /usr/X11/include -idirafter /opt/X11/include
>>
>> instead. In that case GCC searches /usr/X11/include (and MacPorts'
>> /opt/X11/include) definitely last for C header files so that a
>> "foreign" png.h file won't be used because Fink's one is found first.
>>
>> This can easily be checked by adding -H to CFLAGS of CPPFLAGS
>> (because then all C header used for compilation are listed).
>
> Even better is to use -MD (often enabled by autoconf/libtool's
> --enable-dependency-tracking). Instead of relying on one's eye to catch
> the wrong path (and having it still "build" just wrong), one can then
> put a fink-package-precedence command in the CompileScript to cause the
> use of wrong libpng (and others) to be a fatal error. The GNOME2 suite
> of packages have been doing this for years.
>
> dan
>
> --
> Daniel Macks
> [email protected]
>
>
>
By adding -MD to CPPFLAGS, adding SetCXXFLAGS: -MD, and putting
fink-package-precedence --depfile-ext='\.d' build
in the CompileScript, I found the following (10.6/i386, stock X11)
Looking for incorrect headers in 33 dependency files...
build/temp.macosx-10.6-i386-2.7/src/backend_agg.d uses
/usr/X11/include/ft2build.h
build/temp.macosx-10.6-i386-2.7/src/_png.d uses /usr/X11/include/png.h
build/temp.macosx-10.6-i386-2.7/src/_png.d uses
/usr/X11/include/pngconf.h
Please fix build process to get consistent use of fink's headers.
However, on 10.8, I got simply:
Looking for incorrect headers in 33 dependency files...
build/temp.macosx-10.8-x86_64-2.7/src/backend_agg.d uses
/usr/X11/include/ft2build.h
Please fix build process to get consistent use of fink's headers.
--
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users