[cig-commits] r14684 - mc/1D/hc/trunk

walter at geodynamics.org walter at geodynamics.org
Mon Apr 13 16:26:22 PDT 2009


Author: walter
Date: 2009-04-13 16:26:21 -0700 (Mon, 13 Apr 2009)
New Revision: 14684

Modified:
   mc/1D/hc/trunk/make_binary_package
Log:
Get rid of dates, add instructions, and make it work for Mac out of the box

Modified: mc/1D/hc/trunk/make_binary_package
===================================================================
--- mc/1D/hc/trunk/make_binary_package	2009-04-13 23:06:12 UTC (rev 14683)
+++ mc/1D/hc/trunk/make_binary_package	2009-04-13 23:26:21 UTC (rev 14684)
@@ -2,13 +2,21 @@
 #
 # create a directory with the binaries.  It invokes make, so it needs
 # NETCDFHOME and GMTHOME set.  ARCH should not be set.
+#
+# On Linux and cygwin, invoke as
+#
+#   LDFLAGS=-static ./make_binary_package
+#
+# On the Mac, you need to delete the dynamic libraries in
+# ~/netcdf/lib/.  This forces the linker to use the static libraries.
+# Then you can build static libraries with "./make_binary_package"
 
-ver=${1-1.0}
-date=`date '+%m%d%y'`
+ver=1.0
 
-dest=../hc-$ver.$date
+dest=../hc-$ver
 
-CFLAGS="-O2" LDFLAGS="-static" make all
+make clean
+CFLAGS="-O2" make all
 strip bin/*
 
 mkdir "$dest"



More information about the CIG-COMMITS mailing list