Skip to content

Instantly share code, notes, and snippets.

View afxgroup's full-sized avatar

Andrea Palmatè afxgroup

View GitHub Profile
# this one is important
SET(CMAKE_SYSTEM_NAME AmigaOS4)
SET(CMAKE_SYSTEM_VERSION 4)
SET(CMAKE_SYSTEM_PROCESSOR "powerpc")
SET(CMAKE_COMMAND /usr/bin/cmake)
#SET(CMAKE_PREFIX_PATH /usr/ppc-amigaos/SDK/local/lib/SDL2Config.cmake)
#SET(CMAKE_MODULE_PATH /usr/ppc-amigaos/SDK/local/lib/SDL2Config.cmake)
SET(AMIGAOS4 1)
SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE)
@afxgroup
afxgroup / Thread.patch
Created January 4, 2018 09:51
Thread patch to enable posix threads on gcc AmigaOS4
diff --git a/libstdc++-v3/config/io/c_io_stdio.h b/libstdc++-v3/config/io/c_io_stdio.h
index 8a4b453..29e694c 100644
--- a/libstdc++-v3/config/io/c_io_stdio.h
+++ b/libstdc++-v3/config/io/c_io_stdio.h
@@ -33,13 +33,21 @@
#define _GLIBCXX_CXX_IO_H 1
#include <cstdio>
+#ifndef __amigaos4__
#include <bits/gthr.h>