Index: /issm/trunk/externalpackages/gdal/GDALmake.opt.patch
===================================================================
--- /issm/trunk/externalpackages/gdal/GDALmake.opt.patch	(revision 6284)
+++ /issm/trunk/externalpackages/gdal/GDALmake.opt.patch	(revision 6285)
@@ -1,5 +1,8 @@
-225,226c225
-< #CURL_LIB	=	-L/usr/kerberos/lib64 -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz  
-< CURL_LIB	=	-L/usr/lib64 -lcurl /usr/lib64/libgssapi_krb5.so.2  /usr/lib64/libkrb5.so.3 /usr/lib64/libk5crypto.so.3 /usr/lib64/libssl3.so -lresolv -ldl -lidn   -lz  
+31c31
+< LIBS	=	$(SDE_LIB) -I/usr/include -lsqlite3 -L/usr/lib -lexpat -ljpeg -lpng -lz  -lm -lrt -ldl  $(KAK_LIBS) $(DWG_LIBS) $(CURL_LIB) \
 ---
-> CURL_LIB	=	-L/usr/kerberos/lib64 -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz  
+> LIBS	=	$(SDE_LIB) -I/usr/include -lsqlite3 -L/usr/lib64 -lexpat -ljpeg -lpng -lz  -lm -lrt -ldl  $(KAK_LIBS) $(DWG_LIBS) $(CURL_LIB) \
+225c225
+< CURL_LIB	=	-L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz  
+---
+> CURL_LIB	=	-L/usr/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz  
Index: /issm/trunk/externalpackages/gdal/install.sh
===================================================================
--- /issm/trunk/externalpackages/gdal/install.sh	(revision 6284)
+++ /issm/trunk/externalpackages/gdal/install.sh	(revision 6285)
@@ -24,8 +24,9 @@
 #Configure gdal
 cd src
-./configure --prefix="$ISSM_TIER/externalpackages/gdal/install" --without-python --with-netcdf=no --with-jasper=no --without-ld-shared --with-unix-stdio-64=no
+./configure --prefix="$ISSM_TIER/externalpackages/gdal/install" --without-python --with-netcdf=no --with-jasper=no --without-ld-shared --with-unix-stdio-64=no --with-expat-lib=/usr/lib64/libexpat.so
 
 #Patch GDALmake.opt
-patch -R GDALmake.opt ../GDALmake.opt.patch
+patch GDALmake.opt ../GDALmake.opt.patch
+
 
 #Compile and install gdal
@@ -36,4 +37,4 @@
 else
 	make -j $NUMCPUS
-	make -j $NUMCPUS install
+	make install
 fi
