-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unixcoreruncommon static lib dependency
- Loading branch information
Showing
8 changed files
with
8 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,20 @@ | ||
project(unixcorerun) | ||
|
||
include_directories(../unixcoreruncommon) | ||
include_directories("${CLR_SRC_NATIVE_DIR}/common") | ||
include(configure.cmake) | ||
|
||
set(CORERUN_SOURCES | ||
corerun.cpp | ||
) | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
_add_executable(corerun | ||
${CORERUN_SOURCES} | ||
corerun.cpp | ||
coreruncommon.cpp | ||
) | ||
|
||
# FreeBSD and NetBSD implement dlopen(3) in libc | ||
if(NOT CLR_CMAKE_TARGET_FREEBSD AND NOT CLR_CMAKE_TARGET_NETBSD) | ||
target_link_libraries(corerun | ||
dl | ||
) | ||
endif(NOT CLR_CMAKE_TARGET_FREEBSD AND NOT CLR_CMAKE_TARGET_NETBSD) | ||
|
||
# Libc turns locks into no-ops if pthread was not loaded into process yet. Loading | ||
# pthread by the process executable ensures that all locks are initialized properly. | ||
target_link_libraries(corerun | ||
unixcoreruncommon | ||
) | ||
target_link_libraries(corerun ${CMAKE_DL_LIBS}) | ||
|
||
# Android implements pthread natively | ||
if(NOT CLR_CMAKE_TARGET_ANDROID) | ||
target_link_libraries(corerun | ||
pthread | ||
) | ||
target_link_libraries(corerun pthread) | ||
endif() | ||
|
||
install_clr(TARGETS corerun) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...c/hosts/unixcoreruncommon/coreruncommon.h → ...clr/src/hosts/unixcorerun/coreruncommon.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.