[cmake-developers] OpenBSD specific patches

Amit Kulkarni amitkulz at gmail.com
Thu Dec 6 08:36:32 EST 2012


Sorry please forget this message.

On Thu, Dec 6, 2012 at 7:10 AM, Amit Kulkarni <amitkulz at gmail.com> wrote:
> Brad,
>
> Is it possible for you to accept this chunk from
> http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/devel/cmake/patches/patch-Modules_Platform_OpenBSD_cmake
>
> $OpenBSD: patch-Modules_Platform_OpenBSD_cmake,v 1.9 2012/12/05
> 11:32:04 dcoppa Exp $
> --- Modules/Platform/OpenBSD.cmake.orig Tue Nov 27 14:26:32 2012
> +++ Modules/Platform/OpenBSD.cmake      Wed Dec  5 10:13:03 2012
> @@ -1,5 +1,37 @@
> -include(Platform/NetBSD)
> +if(EXISTS /usr/include/dlfcn.h)
> +  set(CMAKE_DL_LIBS "")
> +  set(CMAKE_C_COMPILE_OPTIONS_PIC "-fPIC")
> +  set(CMAKE_C_COMPILE_OPTIONS_PIE "-fPIE")
> +  set(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")            # -pic
> +  set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")       # -shared
> +  set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")         # +s, flag for
> exe link to use shared lib
> +  set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")       # -rpath
> +  set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")   # : or empty
> +  set(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
> +  set(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
> +endif()
>
>
> If you and other CMake maintainers are okay to push the entire file
> in, since it is for OpenBSD? Please let me know.
>
> Thanks,
> amit



More information about the cmake-developers mailing list