Changeset 3299 in CLRX


Ignore:
Timestamp:
Sep 3, 2017, 5:27:49 AM (13 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Add DL lib to clrxutls.pc only if detected.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CMakeLists.txt

    r3268 r3299  
    342342OPTION(BUILD_STATIC_EXE "Compile static executables instead shared" OFF)
    343343
     344# fixing CMAKE_DL_LIBS
     345IF(CMAKE_DL_LIBS)
     346    IF(CMAKE_DL_LIBS MATCHES "^-l")
     347        SET(DL_LIBS "${CMAKE_DL_LIBS}")
     348    ELSE(CMAKE_DL_LIBS MATCHES "^-l")
     349        SET(DL_LIBS "-l${CMAKE_DL_LIBS}")
     350    ENDIF(CMAKE_DL_LIBS MATCHES "^-l")
     351ELSE(CMAKE_DL_LIBS)
     352    SET(DL_LIBS "")
     353ENDIF(CMAKE_DL_LIBS)
     354
    344355IF(BUILD_STATIC_EXE)
    345356    SET(PROGRAM_LIB_SUFFIX "Static")
  • CLRadeonExtender/trunk/pkgconfig/clrxutils.pc.in

    r3268 r3299  
    66Description: CLRX utilities library
    77Version: @CLRX_VERSION@
    8 Libs: -L${libdir} -lCLRXUtils -ldl @CMAKE_THREAD_LIBS_INIT@
     8Libs: -L${libdir} -lCLRXUtils @DL_LIBS@ @CMAKE_THREAD_LIBS_INIT@
    99Cflags: -I${includedir}
Note: See TracChangeset for help on using the changeset viewer.