diff --git a/shareddeps/net/nss.xml b/shareddeps/net/nss.xml
index 4489868d20..c0d855e120 100644
--- a/shareddeps/net/nss.xml
+++ b/shareddeps/net/nss.xml
@@ -99,6 +99,24 @@
patch -Np1 -i ../nss-&nss-version;-illegal_instruction-1.patch
-->
+
+
+
+ If you're rebuilding NSS and you have not installed SQLite, run the
+ following command to prevent a build failure:
+
+
+sqlite3 --version > /dev/null 2>&1 && echo -e "\nDetected an SQLite install. You may continue." ||
+if [ -f /usr/lib/libsqlite3.so -o -f /usr/lib32/libsqlite3.so ]; then
+ echo -e "\nDetected an incomplete SQLite installation!" >&2
+ rm -vf /usr/lib{,32}/libsqlite3.so
+ echo "Removed any problematic SQLite libraries. You may continue."
+else
+ echo -e "\nNo SQLite install (complete or otherwise) detected. You may continue."
+fi
+
+
+
Install NSS by running the following commands: