Blame patches/chicken-5.3.0.local.patch

b7d681
diff -Nru chicken-5.2.0.orig/Makefile.midipix chicken-5.2.0/Makefile.midipix
b7d681
--- chicken-5.2.0.orig/Makefile.midipix	1970-01-01 01:00:00.000000000 +0100
b7d681
+++ chicken-5.2.0/Makefile.midipix	2021-04-04 16:59:37.500039554 +0200
b7d681
@@ -0,0 +1,103 @@
b7d681
+# Makefile.midipix - configuration for Midipix -*- Makefile -*-
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+#
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# Copyright (c) 2008-2016, The CHICKEN Team
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# Copyright (c) 2007, Felix L. Winkelmann
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# All rights reserved.
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+#
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# conditions are met:
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+#
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+#   Redistributions of source code must retain the above copyright notice, this list of conditions and the following
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+#     disclaimer. 
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+#   Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+#     disclaimer in the documentation and/or other materials provided with the distribution. 
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+#   Neither the name of the author nor the names of its contributors may be used to endorse or promote
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+#     products derived from this software without specific prior written permission. 
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+#
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# POSSIBILITY OF SUCH DAMAGE.
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+SRCDIR ?= ./
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# platform configuration
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+ARCH ?= x86-64
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# options
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+C_COMPILER_OPTIONS ?= -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+ifdef DEBUGBUILD
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+else
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+ifdef OPTIMIZE_FOR_SPEED
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3 -fomit-frame-pointer
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+else
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+endif
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+endif
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+LINKER_LINK_SHARED_DLOADABLE_OPTIONS = -L. -shared -Wl,-R"$(RUNTIME_LINKER_PATH)"
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+LINKER_LINK_SHARED_PROGRAM_OPTIONS = -Wl,-R"$(RUNTIME_LINKER_PATH)"
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+LIBCHICKEN_SO_LINKER_OPTIONS = -Wl,-soname,lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX).so.$(BINARYVERSION)
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+LIBRARIES =
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+NEEDS_RELINKING = no
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+USES_SONAME = yes
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# special files
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+CHICKEN_CONFIG_H = chicken-config.h
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+# select default and internal settings
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+include $(SRCDIR)/defaults.make
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+chicken-config.h: chicken-defaults.h
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "/* GENERATED */" >$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_DIRENT_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_DLFCN_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_INTTYPES_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_LIMITS_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_LONG_LONG 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_MEMMOVE 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_MEMORY_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_SIGACTION 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_SIGSETJMP 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_SIGPROCMASK 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_STDINT_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_STDLIB_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_STRERROR 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_STRINGS_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_STRING_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_STRTOLL 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_STRTOQ 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_SYS_STAT_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_SYS_TYPES_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_SETENV 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_UNISTD_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define STDC_HEADERS 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_ALLOCA 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_ALLOCA_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_GRP_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_ERRNO_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_SYSEXITS_H 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define HAVE_MEMMOVE 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define C_STACK_GROWS_DOWNWARD 1" >>$@
b7d681
+#midipix: missing /proc/<pid>/exe see runtime.c
b7d681
+	echo "#define SEARCH_EXE_PATH 1" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+ifdef GCHOOKS
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define C_GC_HOOKS" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+endif
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+ifdef SYMBOLGC
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	echo "#define C_COLLECT_ALL_SYMBOLS" >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+endif
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+	cat chicken-defaults.h >>$@
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+
Lucio Andrés Illanes Albornoz (arab, vxp) a37cb8
+include $(SRCDIR)/rules.make