diff --git a/configure b/configure
index 840d05470b7288a0431effeced5b332180422818..c6bb4d75221bf02f00853df7feed89cbb2c3cfd5 100755
--- a/configure
+++ b/configure
@@ -1358,7 +1358,7 @@ if test $target_os = darwin; then
         add_cflags "-pipe"
         check_cflags "-force_cpusubtype_ALL"
         check_cflags "-Wno-sign-compare"
-        enabled shared || add_cflags -mdynamic-no-pic
+        enabled shared || check_cflags -mdynamic-no-pic
     fi
 fi