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] ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ 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
