Hi Jim,
Thanks for resolving this issue. The DL_LIBRARY variable was introduced in was:
>From Alberto Luaces, "he new GNU linker, "gold", is going to replace
soon the current ld in
almost all Linux distributions. Although it is 100% compatible with ld,
by default it gives an error if a library has unresolved symbols at link
time, that is, it has set -Wl,--no-undefined by default. Debian folks
have found that libosg.so and libosgDB.so use some functions belonging
to libdl.so {dlsym,dlopen,dlclose,dlerror} without linking to it.
My changes link those two libraries to libdl.so explicitly in the same
way it is already done for libm.so and librt.so."
http://www.openscenegraph.org/projects/osg/changeset/11055/OpenSceneGraph/trunk/src/osg/CMakeLists.txt
I've now merged your workaround for when DL_LIBRARY isn't found.
Given that FreeBSD used GNU linker as well there is good chance that
it too will eventually need the inclusion of DL_LIBRARY, you change is
compatible with this possibility.
Robert.
On Thu, Mar 25, 2010 at 10:30 PM, Jim Brooks <[email protected]> wrote:
> Hi Robert,
>
> Reassigning DL_LIBRARY to an empty string
> solves that cmake error on FreeBSD.
>
> I'm just showing where/what the problem is,
> fix it however appropriate.
>
>
> [....... top-level CMakeLists.txt of 2.9.7 .....]
> IF(UNIX)
> # Not sure what this will do on Cygwin and Msys
> # Also, remember OS X X11 is a user installed option so it may not exist.
> FIND_PACKAGE(X11)
> # Some Unicies need explicit linkage to the Math library or the build
> fails.
> FIND_LIBRARY(MATH_LIBRARY m)
> FIND_LIBRARY(DL_LIBRARY dl)
>> IF(NOT DL_LIBRARY)
>> SET(DL_LIBRARY "") # change from NOTFOUND to empty when passed to
>> linker
>> ENDIF()
> IF( CMAKE_SYSTEM MATCHES "Linux" )
> FIND_LIBRARY( RT_LIBRARY rt )
> ENDIF( CMAKE_SYSTEM MATCHES "Linux" )
> ENDIF()
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org