On 21/11/2014 16:44, Joe Taylor wrote: > Hi Bill, Hi Joe, > >> It would be handy to know exactly what compiler/linker options you used >> when building KVASD for the Mac? > cc -c -arch i386 usleep.c > cc -c -O2 -arch i386 asd1.c > gfortran -o kvasd_1.12_mac32_10.7 -m32 kvasd.f90 asd1.o usleep.o > > cc -c -arch x86_64 usleep.c > cc -c -O2 -arch x86_64 asd1.c > gfortran -o kvasd_1.12_mac64_10.7 -m64 kvasd.f90 asd1.o usleep.o > > ... and similar for the other OS X version numbers. OK, currently it looks like only the versions built on the OS X 10.7 system are portable across versions.
For future reference you should be able to build on an OS X 10.10 system with the following options: for a 32-bit version built on a 64-bit system: cc -c -O2 -m32 usleep.c cc -c -O2 -m32 asd1.c gfortran -o kvasd_1.12_mac32 -O2 -m32 -mmacosx-version-min=10.7 \ -Wl,-headerpad_max_install_names kvasd.f90 asd1.o usleep.o and for a 64-bit version: cc -c -O2 usleep.c cc -c -O2 asd1.c gfortran -o kvasd_1.12_mac64 -O2 -mmacosx-version-min=10.7 \ -Wl,-headerpad_max_install_names kvasd.f90 asd1.o usleep.o The -headerpad_max_install_names ensures that the executable has enough room in the section where the shared library linking path references go, which we need as we have to re-write them to reference the same shared libraries that we bundle with WSJT-X using a relative path. Not an issue as it stands since the references created on John's system are longer than the re-written ones but it is good practice to pad them just in case. I would expect '-O2' at least to be passed to each compile for a release build, I'm not sure why only the asd1.c file is optimized (I assume it is the bulk of the code but I would still turn on optimization for everything else). I think we have versions that are suitable for general release so no need to rebuild at the moment but if that need does arise the above should save some time by only building on one version of OS X i.e. 10.10. > > -- Joe 73 Bill G4WJS. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ wsjt-devel mailing list wsjt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wsjt-devel