summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorIsmael Luceno2019-08-12 19:33:41 +0200
committerIsmael Luceno2019-08-13 12:51:49 +0200
commit0d5b1e71bdfe487140e43eecf904a00a7276eced (patch)
treeee31d90fc2354d6c56b1652405b225362737d7e8 /security
parent536b1d057dcd72fbfbc7fa6222ef4479bbf30c4c (diff)
wipe: Fix passing of CFLAGS and build against musl
Diffstat (limited to 'security')
-rwxr-xr-xsecurity/wipe/BUILD4
-rw-r--r--security/wipe/HISTORY4
-rwxr-xr-xsecurity/wipe/PRE_BUILD5
3 files changed, 13 insertions, 0 deletions
diff --git a/security/wipe/BUILD b/security/wipe/BUILD
new file mode 100755
index 0000000000..a9ac6dd6c2
--- /dev/null
+++ b/security/wipe/BUILD
@@ -0,0 +1,4 @@
+case "$HOST" in
+*-musl) CFLAGS+=" -Du_int32_t=uint32_t" ;;
+esac &&
+default_build
diff --git a/security/wipe/HISTORY b/security/wipe/HISTORY
index 5ecf965fe1..98aa4bf305 100644
--- a/security/wipe/HISTORY
+++ b/security/wipe/HISTORY
@@ -1,3 +1,7 @@
+2019-08-12 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, PRE_BUILD: Fixed build against musl
+ Fixed passing of CFLAGS
+
2016-07-09 Ismael Luceno <ismael@sourcemage.org>
* DETAILS: updated spell to 2.3.1
diff --git a/security/wipe/PRE_BUILD b/security/wipe/PRE_BUILD
new file mode 100755
index 0000000000..96893bc8c9
--- /dev/null
+++ b/security/wipe/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+sedit 's!maybe_os in$!& linux-musl*|\\!' config.sub &&
+# Fix passing of CFLAGS
+sedit '/^fullCFLAGS=""/s/"/"$CFLAGS/' configure