logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git

zlib-1.3.1-use-LDFLAGS-in-configure_no_gcc.patch (3079B)


  1. --- zlib-1.3.1/configure.old 2024-04-30 11:16:05.383361503 +0200
  2. +++ zlib-1.3.1/configure 2024-04-30 11:16:13.685327393 +0200
  3. @@ -299,25 +299,25 @@
  4. esac ;;
  5. IRIX*) SFLAGS=${CFLAGS-"-ansi -O2 -rpath ."}
  6. CFLAGS=${CFLAGS-"-ansi -O2"}
  7. - LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so.1"} ;;
  8. + LDSHARED=${LDSHARED-"$CC -shared -Wl,-soname,libz.so.1"} ;;
  9. OSF1\ V4*) SFLAGS=${CFLAGS-"-O -std1"}
  10. CFLAGS=${CFLAGS-"-O -std1"}
  11. LDFLAGS="${LDFLAGS} -Wl,-rpath,."
  12. - LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so -Wl,-msym -Wl,-rpath,$(libdir) -Wl,-set_version,${VER}:1.0"} ;;
  13. + LDSHARED=${LDSHARED-"$CC -shared -Wl,-soname,libz.so -Wl,-msym -Wl,-rpath,$(libdir) -Wl,-set_version,${VER}:1.0"} ;;
  14. OSF1*) SFLAGS=${CFLAGS-"-O -std1"}
  15. CFLAGS=${CFLAGS-"-O -std1"}
  16. - LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so.1"} ;;
  17. + LDSHARED=${LDSHARED-"$CC -shared -Wl,-soname,libz.so.1"} ;;
  18. QNX*) SFLAGS=${CFLAGS-"-4 -O"}
  19. CFLAGS=${CFLAGS-"-4 -O"}
  20. - LDSHARED=${LDSHARED-"cc"}
  21. + LDSHARED=${LDSHARED-"$CC"}
  22. RANLIB=${RANLIB-"true"}
  23. AR="cc"
  24. ARFLAGS="-A" ;;
  25. SCO_SV\ 3.2*) SFLAGS=${CFLAGS-"-O3 -dy -KPIC "}
  26. CFLAGS=${CFLAGS-"-O3"}
  27. - LDSHARED=${LDSHARED-"cc -dy -KPIC -G"} ;;
  28. + LDSHARED=${LDSHARED-"$CC -dy -KPIC -G"} ;;
  29. SunOS\ 5* | solaris*)
  30. - LDSHARED=${LDSHARED-"cc -G -h libz$shared_ext.$VER1"}
  31. + LDSHARED=${LDSHARED-"$CC -G -h libz$shared_ext.$VER1"}
  32. SFLAGS=${CFLAGS-"-fast -KPIC"}
  33. CFLAGS=${CFLAGS-"-fast"}
  34. if test $build64 -eq 1; then
  35. @@ -347,19 +347,19 @@
  36. LDSHARED=${LDSHARED-"ld"} ;;
  37. SunStudio\ 9*) SFLAGS=${CFLAGS-"-fast -xcode=pic32 -xtarget=ultra3 -xarch=v9b"}
  38. CFLAGS=${CFLAGS-"-fast -xtarget=ultra3 -xarch=v9b"}
  39. - LDSHARED=${LDSHARED-"cc -xarch=v9b"} ;;
  40. + LDSHARED=${LDSHARED-"$CC -xarch=v9b"} ;;
  41. UNIX_System_V\ 4.2.0)
  42. SFLAGS=${CFLAGS-"-KPIC -O"}
  43. CFLAGS=${CFLAGS-"-O"}
  44. - LDSHARED=${LDSHARED-"cc -G"} ;;
  45. + LDSHARED=${LDSHARED-"$CC -G"} ;;
  46. UNIX_SV\ 4.2MP)
  47. SFLAGS=${CFLAGS-"-Kconform_pic -O"}
  48. CFLAGS=${CFLAGS-"-O"}
  49. - LDSHARED=${LDSHARED-"cc -G"} ;;
  50. + LDSHARED=${LDSHARED-"$CC -G"} ;;
  51. OpenUNIX\ 5)
  52. SFLAGS=${CFLAGS-"-KPIC -O"}
  53. CFLAGS=${CFLAGS-"-O"}
  54. - LDSHARED=${LDSHARED-"cc -G"} ;;
  55. + LDSHARED=${LDSHARED-"$CC -G"} ;;
  56. AIX*) # Courtesy of dbakker@arrayasolutions.com
  57. SFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
  58. CFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
  59. @@ -367,7 +367,7 @@
  60. # send working options for other systems to zlib@gzip.org
  61. *) SFLAGS=${CFLAGS-"-O"}
  62. CFLAGS=${CFLAGS-"-O"}
  63. - LDSHARED=${LDSHARED-"cc -shared"} ;;
  64. + LDSHARED=${LDSHARED-"$CC -shared"} ;;
  65. esac
  66. fi