diff --git a/Dockerfile b/Dockerfile index c3f39bd..5c525d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -101,7 +101,7 @@ RUN cat $PREFIX/src/gcc-*.patch | patch -d/gcc-$GCC_VERSION -p1 \ --enable-static \ --disable-shared \ --with-pic \ - --enable-languages=c,c++ \ + --enable-languages=c,c++,fortran \ --enable-libgomp \ --enable-threads=posix \ --enable-version-specific-runtime-libs \ @@ -263,7 +263,7 @@ RUN /gcc-$GCC_VERSION/configure \ --with-mpc-lib=/deps/lib \ --with-mpfr-include=/deps/include \ --with-mpfr-lib=/deps/lib \ - --enable-languages=c,c++ \ + --enable-languages=c,c++,fortran \ --enable-libgomp \ --enable-threads=posix \ --enable-version-specific-runtime-libs \ @@ -301,7 +301,7 @@ RUN $ARCH-gcc -DEXE=gcc.exe -DCMD=cc \ -o $PREFIX/bin/c89.exe $PREFIX/src/alias.c -lkernel32 \ && printf '%s\n' addr2line ar as c++filt cpp dlltool dllwrap elfedit g++ \ gcc gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool ld nm objcopy \ - objdump ranlib readelf size strings strip windmc windres \ + objdump ranlib readelf size strings strip windmc windres gfortran \ | xargs -I{} -P$(nproc) \ $ARCH-gcc -DEXE={}.exe -DCMD=$ARCH-{} \ -Os -fno-asynchronous-unwind-tables \ diff --git a/README.md b/README.md index 1fa0035..73127e0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Portable C and C++ Development Kit for x64 Windows +# Portable C, C++, and Fortran Development Kit for x64 and x86 Windows [w64devkit][] is a Dockerfile that builds from source a small, portable development suite for creating C and C++ applications on and for x64 @@ -83,12 +83,6 @@ then the hint is zeroed: "no data." Eliminating this random data makes binaries more compressible and *theoretically* faster loading. See also: `peports`. -## Fortran support - -Only C and C++ are included by default, but w64devkit also has full -support for Fortran. To build a Fortran compiler, add `fortran` to the -`--enable-languages` lines in the Dockerfile. - ## Recommended downloadable, offline documentation With a few exceptions, such as Vim's built-in documentation (`:help`), diff --git a/multibuild.sh b/multibuild.sh index 0524ba4..c43c1c4 100755 --- a/multibuild.sh +++ b/multibuild.sh @@ -20,8 +20,6 @@ usage: multibuild.sh [-48abfhnOs] [-s SUFFIX] -4 Enable i686 build (default: no) -8 Enable x86_64 build (default: auto) -a All: Enable all builds - -b Enable vanilla build (default: auto) - -f Enable Fortran build (default: no) -h Print this help message -n Dry run, print commands but do nothing -O Compact with advzip (default: no, less compatible) @@ -33,9 +31,7 @@ while getopts 48abfhmnOs: opt; do case $opt in 4) arch="$arch w64devkit-i686";; 8) arch="$arch w64devkit";; - a) flavors="X -fortran"; arch="w64devkit w64devkit-i686";; - b) flavors="$flavors X";; - f) flavors="$flavors -fortran";; + a) flavors="X"; arch="w64devkit w64devkit-i686";; h) usage; exit 0;; n) dryrun=echo;; O) compact=yes;; diff --git a/src/variant-fortran.patch b/src/variant-fortran.patch deleted file mode 100644 index 55f4dfa..0000000 --- a/src/variant-fortran.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- a/Dockerfile -+++ b/Dockerfile -@@ -102,3 +102,3 @@ RUN cat $PREFIX/src/gcc-*.patch | patch -d/gcc-$GCC_VERSION -p1 \ - --with-pic \ -- --enable-languages=c,c++ \ -+ --enable-languages=c,c++,fortran \ - --enable-libgomp \ -@@ -254,3 +254,3 @@ RUN sed -i 's#=/mingw/include#=/include#' /gcc-$GCC_VERSION/gcc/config.gcc \ - --with-mpfr-lib=/deps/lib \ -- --enable-languages=c,c++ \ -+ --enable-languages=c,c++,fortran \ - --enable-libgomp \ -@@ -288,3 +288,3 @@ RUN $ARCH-gcc -DEXE=gcc.exe -DCMD=cc \ - gcc gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool ld nm objcopy \ -- objdump ranlib readelf size strings strip windmc windres \ -+ objdump ranlib readelf size strings strip windmc windres gfortran \ - | xargs -I{} -P$(nproc) \