Hi Chris,
>Is there a way to make sure that a conda package does not link against any non-system and non-conda libs?
In general, this is beyond conda's control. One option, of course, is
to build your recipes within a virtual machine, which you can ensure
hasn't been polluted with packages from homebrew, macports, etc.
Beyond that, you'll need to pass the appropriate flags to your
configure script, as you said.
I have no personal experience with libgd, but it appears that project
supports both autotools (configure) and cmake. I have more experience
with cmake, so I'll recommend using that.
You can tell cmake where to look for libraries in general via
CMAKE_PREFIX_PATH. If they can be found there, then (in theory),
cmake shouldn't accidentally find the other stuff on your system. For
example, I bet this will be a good start for your recipe:
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_PREFIX_PATH="${PREFIX}" \
-DCMAKE_BUILD_TYPE=Release \
If necessary, you can set the individual cache variables for each dependency:
-DPNG_LIBRARY=${PREFIX}/lib/libpng.dylib \
-DPNG_PNG_INCLUDE_DIR=${PREFIX}/include \
-DFONTCONFIG_LIBRARY=${PREFIX}/lib/libfontconfig.dylib \
-DFONTCONFIG_INCLUDE_DIR=${PREFIX}/include \
...of course, you'd be wise to double-check the output of otool as you
did before, to make sure the right libraries were picked up.
HTH,
Stuart
> --
> You received this message because you are subscribed to the Google Groups
> "conda - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
conda+un...@continuum.io.
> To post to this group, send email to
co...@continuum.io.
> Visit this group at
http://groups.google.com/a/continuum.io/group/conda/.