Changeset 11055

Show
Ignore:
Timestamp:
02/11/10 12:17:55 (3 years ago)
Author:
robert
Message:

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."

Location:
OpenSceneGraph/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/CMakeLists.txt

    r10971 r11055  
    153153    # Some Unicies need explicit linkage to the Math library or the build fails. 
    154154    FIND_LIBRARY(MATH_LIBRARY m) 
     155    FIND_LIBRARY(DL_LIBRARY dl) 
    155156    IF( CMAKE_SYSTEM MATCHES "Linux" ) 
    156157        FIND_LIBRARY( RT_LIBRARY rt ) 
  • OpenSceneGraph/trunk/src/osg/CMakeLists.txt

    r10773 r11055  
    332332    OpenThreads 
    333333) 
    334 LINK_EXTERNAL(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT}    ${MATH_LIBRARY} ${RT_LIBRARY} ) 
     334LINK_EXTERNAL(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT}    ${MATH_LIBRARY} ${RT_LIBRARY} ${DL_LIBRARY}) 
    335335LINK_CORELIB_DEFAULT(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT} ${MATH_LIBRARY} ${RT_LIBRARY} ) 
    336336 
  • OpenSceneGraph/trunk/src/osgDB/CMakeLists.txt

    r11054 r11055  
    136136    OpenThreads 
    137137) 
    138 LINK_EXTERNAL(${LIB_NAME} ${OSGDB_PLATFORM_SPECIFIC_LIBRARIES}) 
     138LINK_EXTERNAL(${LIB_NAME} ${OSGDB_PLATFORM_SPECIFIC_LIBRARIES} ${DL_LIBRARY}) 
    139139LINK_WITH_VARIABLES(${LIB_NAME} ${COMPRESSION_LIBRARIES}) 
    140140LINK_CORELIB_DEFAULT(${LIB_NAME})