diff --git a/configure b/configure
index a39e6b4ab286018a402ede354d850e52c1d0c17d..24844969c1f68e805e27a62cc95888a71d7f2dfc 100755
--- a/configure
+++ b/configure
@@ -1317,7 +1317,7 @@ if test "$vhook" = "yes" ; then
 fi
 if test "$lshared" = "yes" ; then
   echo "BUILD_SHARED=yes" >> config.mak
-  echo "PIC=-fPIC" >> config.mak
+  echo "PIC=-fPIC -DPIC" >> config.mak
 fi
 echo "EXTRALIBS=$extralibs" >> config.mak
 version=`grep '#define FFMPEG_VERSION ' "$source_path/libavcodec/avcodec.h" |