From aa3a856b888882a515c7ba07ca137841fcb0619d Mon Sep 17 00:00:00 2001 From: Lubos Dolezel Date: Thu, 14 Jan 2016 22:20:59 +0100 Subject: [PATCH] Build binaries with DARWIN version string for loading with dyld --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b18c1f7..3c46dee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ add_definitions(-D__APPLE__ -D__DYNAMIC__) # add_definitions(-DSUPPORT_UTMPX) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__DARWIN_UNIX03 -nostdinc -fPIC -ggdb -O0") -set(CMAKE_EXE_LINKER_FLAGS "-nostdlib") +set(CMAKE_EXE_LINKER_FLAGS "-nostdlib -Wl,--version-script=${DARLING_TOP_DIRECTORY}/darwin.map") include_directories(${DARLING_TOP_DIRECTORY}/src/libc/include/FreeBSD) include_directories(${DARLING_TOP_DIRECTORY}/src/libc/include/NetBSD)