diff --git a/configure b/configure
index 5d8fcb0b57cf83a822529293a5cc125e98c031c3..2171d748f635557f3ec5561b66d9c944bef4271a 100755
--- a/configure
+++ b/configure
@@ -2988,6 +2988,8 @@ elif enabled armcc; then
     add_cflags -W${armcc_opt},--diag_suppress=3343 # hardfp compat
 elif enabled tms470; then
     add_cflags -pds=824 -pds=837
+elif enabled pathscale; then
+    add_cflags -fstrict-overflow -OPT:wrap_around_unsafe_opt=OFF
 fi
 
 enabled_any $THREADS_LIST      && enable threads