Skip to content

Commit

Permalink
Small fix for libdl.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Mar 4, 2022
1 parent 59f7300 commit 1a6eda2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ detect_fpu_mode(LJ_DETECTED_FPU_MODE)
detect_fpu_abi(LJ_DETECTED_FPU_ABI)

find_library(LIBM_LIBRARIES NAMES m)
find_library(LIBDL_LIBRARIES NAMES dl)

set(TARGET_ARCH "")
set(DASM_FLAGS "")
Expand Down Expand Up @@ -496,9 +495,7 @@ if(LIBM_LIBRARIES)
target_link_libraries(libluajit ${LIBM_LIBRARIES})
endif()

if (LIBDL_LIBRARIES)
target_link_libraries(libluajit ${LIBDL_LIBRARIES})
endif()
target_link_libraries(libluajit ${CMAKE_DL_LIBS})

set(LJ_DEFINITIONS ${LJ_DEFINITIONS} -DLUA_MULTILIB="${LUA_MULTILIB}")
target_compile_definitions(libluajit PRIVATE ${LJ_DEFINITIONS})
Expand Down

0 comments on commit 1a6eda2

Please sign in to comment.