title: How to compile THC Secure Delete 3.1 on macOS Monterey? (fatal error: 'linux/config.h' file not found)
body: <p>I'm working on a script to configure my macOS Monterey system and one of the packages it installs is optionally dependant on thc's secure delete package but I can't get it to compile it's available at the following link: <a href="https://github.com/hackerschoice/THC-Archive/blob/master/Tools/secure_delete-3.1.tar.gz" rel="nofollow noreferrer">https://github.com/hackerschoice/THC-Archive/blob/master/Tools/secure_delete-3.1.tar.gz</a></p>
  <p>The errors I encounter are as follows:</p>
  <p>Error #1:</p>
  <pre><code>gcc -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2  -I/lib/modules/`uname -r`/build/include -c sdel-mod.c
  clang: error: unknown argument: '-mpreferred-stack-boundary=2'
  make: *** [sdel-mod.o] Error 1
  </code></pre>
  <p>However I managed to bypass that error by simply removing the following flag:</p>
  <pre><code>-mpreferred-stack-boundary=2
  </code></pre>
  <p>Weather that's the optimal fix or not however I'm unsure and would like more information if anyone could provide it.</p>
  <p>Error #2:</p>
  <pre><code>gcc -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -pipe  -I/lib/modules/`uname -r`/build/include -c sdel-mod.c
  sdel-mod.c:8:10: fatal error: 'linux/config.h' file not found
  #include &lt;linux/config.h&gt;
           ^~~~~~~~~~~~~~~~
  1 error generated.
  make: *** [sdel-mod.o] Error 1
  </code></pre>
  <p>I have no idea how to fix this error could anybody help please?</p>
  <p>Also if there is anyway to install these packages on macOS Monterey other than compiling from source that would work for me...</p>