Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 336838 Details for
Bug 453988
dev-util/cmake support for FreeMiNT
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Add FreeMiNT support
cmake-2.8.10-mint.patch (text/plain), 3.79 KB, created by
Alan Hourihane
on 2013-01-25 13:11:15 UTC
(
hide
)
Description:
Add FreeMiNT support
Filename:
MIME Type:
Creator:
Alan Hourihane
Created:
2013-01-25 13:11:15 UTC
Size:
3.79 KB
patch
obsolete
>--- /dev/null 2011-04-24 07:36:46.000000000 +0000 >+++ Modules/Platform/FreeMiNT.cmake 2011-04-27 17:02:06.000000000 +0000 >@@ -0,0 +1,8 @@ >+INCLUDE(Platform/UnixPaths) >+ >+SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE) >+SET(CMAKE_CXX_LINK_SHARED_LIBRARY ) >+SET(CMAKE_CXX_LINK_MODULE_LIBRARY ) >+SET(CMAKE_C_LINK_SHARED_LIBRARY ) >+SET(CMAKE_C_LINK_MODULE_LIBRARY ) >+SET(CMAKE_DL_LIBS "dld" ) >--- Source/kwsys/ProcessUNIX.c.old 2011-05-22 15:17:01.000000000 +0100 >+++ Source/kwsys/ProcessUNIX.c 2011-05-22 08:32:15.000000000 +0100 >@@ -106,7 +106,7 @@ > * pipes' file handles to be non-blocking and just poll them directly > * without select(). > */ >-#if !defined(__BEOS__) && !defined(__VMS) >+#if !defined(__BEOS__) && !defined(__VMS) && !defined(__MINT__) > # define KWSYSPE_USE_SELECT 1 > #endif > >--- Source/kwsys/DynamicLoader.cxx.old 2011-05-22 19:35:32.000000000 +0100 >+++ Source/kwsys/DynamicLoader.cxx 2011-05-22 22:11:13.000000000 +0100 >@@ -428,6 +428,58 @@ > } // namespace KWSYS_NAMESPACE > #endif > >+#ifdef __MINT__ >+#define DYNAMICLOADER_DEFINED 1 >+#define _GNU_SOURCE /* for program_invocation_name */ >+#include <string.h> >+#include <malloc.h> >+#include <errno.h> >+#include <dld.h> >+ >+namespace KWSYS_NAMESPACE >+{ >+ >+//---------------------------------------------------------------------------- >+DynamicLoader::LibraryHandle DynamicLoader::OpenLibrary(const char* libname ) >+{ >+ char *name = (char *)calloc(1, strlen(libname) + 1); >+ dld_init(program_invocation_name); >+ strncpy(name, libname, strlen(libname)); >+ dld_link(libname); >+ return (void *)name; >+} >+ >+//---------------------------------------------------------------------------- >+int DynamicLoader::CloseLibrary(DynamicLoader::LibraryHandle lib) >+{ >+ dld_unlink_by_file((char *)lib, 0); >+ free(lib); >+ return 0; >+} >+ >+//---------------------------------------------------------------------------- >+DynamicLoader::SymbolPointer DynamicLoader::GetSymbolAddress( >+ DynamicLoader::LibraryHandle lib, const char* sym) >+{ >+ // Hack to cast pointer-to-data to pointer-to-function. >+ union >+ { >+ void* pvoid; >+ DynamicLoader::SymbolPointer psym; >+ } result; >+ result.pvoid = dld_get_symbol(sym); >+ return result.psym; >+} >+ >+//---------------------------------------------------------------------------- >+const char* DynamicLoader::LastError() >+{ >+ return dld_strerror(dld_errno); >+} >+ >+} // namespace KWSYS_NAMESPACE >+#endif >+ > // --------------------------------------------------------------- > // 6. Implementation for default UNIX machines. > // if nothing has been defined then use this >diff -u Modules/FindCURL.cmake.old Modules//FindCURL.cmake >--- Modules/FindCURL.cmake.old 2011-07-08 12:21:44.000000000 +0000 >+++ Modules//FindCURL.cmake 2011-10-03 23:07:45.000000000 +0000 >@@ -56,6 +56,6 @@ > VERSION_VAR CURL_VERSION_STRING) > > if(CURL_FOUND) >- set(CURL_LIBRARIES ${CURL_LIBRARY}) >+ SET(CURL_LIBRARIES ${CURL_LIBRARY} ssl crypto) > set(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIR}) > endif() >diff -u Modules/FindLibArchive.cmake.old Modules//FindLibArchive.cmake >--- Modules/FindLibArchive.cmake.old 2011-07-08 12:21:44.000000000 +0000 >+++ Modules//FindLibArchive.cmake 2011-10-04 07:36:42.000000000 +0000 >@@ -62,5 +62,5 @@ > > if(LibArchive_FOUND) > set(LibArchive_INCLUDE_DIRS ${LibArchive_INCLUDE_DIR}) >- set(LibArchive_LIBRARIES ${LibArchive_LIBRARY}) >+ set(LibArchive_LIBRARIES ${LibArchive_LIBRARY} bz2 lzma xml2 z iconv ssl crypto) > endif() >--- Source/cmakemain.cxx.old 2013-01-24 14:00:52.000000000 +0000 >+++ Source/cmakemain.cxx 2013-01-24 14:02:02.000000000 +0000 >@@ -326,6 +326,11 @@ > std::cout.flush(); > } > >+#if defined (atarist) >+/* The Atari operating system doesn't have a dynamic stack. The >+ stack size is determined from this value. */ >+long _stksize = 256 * 1024; >+#endif > > int main(int ac, char** av) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 453988
: 336838