diff options
author | Ørjan Malde <red@foxi.me> | 2020-07-06 19:39:49 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-07-06 18:53:56 +0100 |
commit | e22af77276eae62eebc5f6b7faf4ff6c835311d2 (patch) | |
tree | 8e20e407f57bde79f4480635e9ddb5b27fa35dc0 /patches/bdwgc_pre.local.patch | |
parent | 44c9ac642adb500dae71b642a918eb723d459b76 (diff) | |
download | midipix_build-e22af77276eae62eebc5f6b7faf4ff6c835311d2.tar.bz2 midipix_build-e22af77276eae62eebc5f6b7faf4ff6c835311d2.tar.xz |
groups/231.native_packages_etc.group: bdwgc: proper configure support
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
Diffstat (limited to 'patches/bdwgc_pre.local.patch')
-rw-r--r-- | patches/bdwgc_pre.local.patch | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/patches/bdwgc_pre.local.patch b/patches/bdwgc_pre.local.patch index 39189890..ba43365c 100644 --- a/patches/bdwgc_pre.local.patch +++ b/patches/bdwgc_pre.local.patch @@ -1,13 +1,32 @@ ---- bdwgc/configure.ac.orig 2017-06-15 16:27:37.964531977 +0000 -+++ bdwgc/configure.ac 2017-06-15 18:17:47.369988647 +0000 -@@ -208,6 +208,10 @@ - THREADDLLIBS="-lpthread -lrt" - # HPUX needs REENTRANT for the _r calls. +diff -ru bdwgc.orig/configure.ac bdwgc/configure.ac +--- bdwgc.orig/configure.ac 2020-07-05 12:09:58.042430329 +0200 ++++ bdwgc/configure.ac 2020-07-06 19:34:20.918143543 +0200 +@@ -194,7 +194,7 @@ + *-*-aix* | *-*-android* | *-*-cygwin* | *-*-darwin* | *-*-dragonfly* | \ + *-*-freebsd* | *-*-haiku* | *-*-hpux11* | *-*-irix* | \ + *-*-kfreebsd*-gnu | *-*-gnu* | *-*-*linux* | *-*-msys* | *-*-nacl* | \ +- *-*-netbsd* | *-*-openbsd* | *-*-osf* | *-*-solaris*) ++ *-*-netbsd* | *-*-openbsd* | *-*-osf* | *-*-solaris* | *-*-midipix*) + AC_DEFINE(GC_THREADS) + AC_DEFINE([_REENTRANT], [1], + [Required define if using POSIX threads.]) +@@ -240,6 +240,10 @@ + THREADDLLIBS="" + win32_threads=true ;; -+ *-*-midipix*) -+ AC_DEFINE(GC_THREADS) -+ AC_DEFINE(_REENTRANT) ++ *-*-midipix*) ++ # libpthread is part of libc ++ THREADDLLIBS="" + ;; - *-*-openbsd*) - AM_CFLAGS="$AM_CFLAGS -pthread" - THREADDLLIBS=-pthread + *-*-mingw*) + AC_DEFINE(GC_WIN32_PTHREADS) + # Using pthreads-win32 (or other non-Cygwin pthreads) library. +@@ -791,7 +795,7 @@ + [AC_TRY_COMPILE([ + #ifdef __CYGWIN__ + #define _GNU_SOURCE 1 +-#elif defined(__linux__) || defined(__GLIBC__) || defined(__GNU__) ++#elif defined(__linux__) || defined(__GLIBC__) || defined(__GNU__) || defined(__midipix__) + #define _GNU_SOURCE 1 + #endif + #include <pthread.h>], |