Skip to content

Instantly share code, notes, and snippets.

Avatar
🦋
ゴキゲンな蝶になって。。。

Firas Khalil Khana firasuke

🦋
ゴキゲンな蝶になって。。。
View GitHub Profile
@firasuke
firasuke / 0001-adjust-toolchain-paths-for-x86-64.patch
Created Sep 30, 2020
Old patch from glaucus adjusted for use in mlfs
View 0001-adjust-toolchain-paths-for-x86-64.patch
--- gcc/config/i386/linux.h
+++ gcc/config/i386/linux.h
@@ -20,7 +20,13 @@
<http://www.gnu.org/licenses/>. */
#define GNU_USER_LINK_EMULATION "elf_i386"
-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
#undef MUSL_DYNAMIC_LINKER
View dash-colors.sh
#!/usr/bin/dash -e
# Copyright (c) 2020, Firas Khalil Khana
# Distributed under the terms of the ISC License
for i in $(seq 30 37) $(seq 40 48); do
for j in $(seq 0 9); do
printf "\033[$j;${i}m\\\033[$j;${i}m\033[0m "
done
printf '\n'
@firasuke
firasuke / generate-mcm-toolchain.sh
Last active Jun 20, 2020
Building an x86-64 cross compiler targeting musl libc (musl-cross-make style)
View generate-mcm-toolchain.sh
#!/usr/bin/dash -e
# Copyright (c) 2020, Firas Khalil Khana
# Distributed under the terms of the ISC License
#
# Credits to Rich Felker and musl-cross-make for making this possible
#
set -e
@firasuke
firasuke / generate-toolchain.sh
Last active Jun 17, 2020
[DEPRECATED] [Now called mussel] Building an x86-64 cross compiler targeting musl libc
View generate-toolchain.sh
#!/usr/bin/dash -e
# Copyright (c) 2020, Firas Khalil Khana
# Distributed under the terms of the ISC License
#
# This script is now officialy known as mussel and is maintained by
# firasuke over at: https://github.com/firasuke/mussel
#