--- a/mac/ExternalPrograms/scripts/static/libexiv2.sh
+++ b/mac/ExternalPrograms/scripts/static/libexiv2.sh
@@ -10,11 +10,13 @@
 # export REPOSITORYDIR="/PATH2HUGIN/mac/ExternalPrograms/repository" \
 # ARCHS="ppc i386" \
 #  ppcTARGET="powerpc-apple-darwin8" \
+#  ppcOSVERSION="10.4" \
+#  ppcMACSDKDIR="/Developer/SDKs/MacOSX10.4u.sdk" \
+#  ppcOPTIMIZE="-mcpu=G3 -mtune=G4" \
 #  i386TARGET="i386-apple-darwin8" \
-#  ppcMACSDKDIR="/Developer/SDKs/MacOSX10.4u.sdk" \
+#  i386OSVERSION="10.4" \
 #  i386MACSDKDIR="/Developer/SDKs/MacOSX10.4u.sdk" \
-#  ppcONLYARG="-mcpu=G3 -mtune=G4" \
-#  i386ONLYARG="-mfpmath=sse -msse2 -mtune=pentium-m -ftree-vectorize" \
+#  i386OPTIMIZE="-march=prescott -mtune=pentium-m -ftree-vectorize" \
 #  OTHERARGs="";
 
 
@@ -48,22 +50,22 @@
  then
   TARGET=$i386TARGET
   MACSDKDIR=$i386MACSDKDIR
-  ARCHARGs="$i386ONLYARG"
+  ARCHARGs="$i386OPTIMIZE -mmacosx-version-min=$i386OSVERSION"
  elif [ $ARCH = "ppc" -o $ARCH = "ppc750" -o $ARCH = "ppc7400" ]
  then
   TARGET=$ppcTARGET
   MACSDKDIR=$ppcMACSDKDIR
-  ARCHARGs="$ppcONLYARG"
+  ARCHARGs="$ppcOPTIMIZE -mmacosx-version-min=$ppcOSVERSION"
  elif [ $ARCH = "ppc64" -o $ARCH = "ppc970" ]
  then
   TARGET=$ppc64TARGET
   MACSDKDIR=$ppc64MACSDKDIR
-  ARCHARGs="$ppc64ONLYARG"
+  ARCHARGs="$ppc64OPTIMIZE -mmacosx-version-min=$ppc64OSVERSION"
  elif [ $ARCH = "x86_64" ]
  then
   TARGET=$x64TARGET
   MACSDKDIR=$x64MACSDKDIR
-  ARCHARGs="$x64ONLYARG"
+  ARCHARGs="$x64OPTIMIZE -mmacosx-version-min=$x64OSVERSION"
  fi
 
  env CFLAGS="-isysroot $MACSDKDIR -arch $ARCH $ARCHARGs $OTHERARGs -O2 -dead_strip" \