pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wrappers vs. -I, was: Re: error building pkgsrc/graphics/netpbm on OS X




from my .work.log:

        [*] /usr/pkgsrc/graphics/netpbm/work.mini/.wrapper/bin/gcc
        /usr/pkgsrc/graphics/netpbm/work.mini/.wrapper/bin/gcc -c -I
        
/Users/feyrer/work/NetBSD/cvs/pkgsrc/graphics/netpbm/work.mini/netpbm-10.35.80 
-I
        
/Users/feyrer/work/NetBSD/cvs/pkgsrc/graphics/netpbm/work.mini/netpbm-10.35.80/lib/util/..
        -DNDEBUG -pipe -O2 -I/Volumes/pkgsrc5/pkg/include -I/usr/include
        -fno-common -o shhopt.o shhopt.c

        <.> /usr/pkgsrc/graphics/netpbm/work.mini/.gcc/bin/gcc -c -DNDEBUG -pipe
        -O2 -I/usr/pkgsrc/graphics/netpbm/work.mini/.buildlink/include 
-fno-common
        -o shhopt.o shhopt.c -m32
        -L/usr/pkgsrc/graphics/netpbm/work.mini/.buildlink/lib

From the build error, it can't find some .h files that come with the package. The right -I flags are passed in to the gcc wrapper, but then the actual gcc is only called with -I for the buildlink directory.

How do I get those other directories added?
(Either by adding more -I flags to the actual gcc call, or even by adding more links to the buildlink dir)


 - Hubert


Home | Main Index | Thread Index | Old Index