[OpenSSL-3.0LTS] Makefile requires obsoleted SysV m4 -B option

Issue #375 resolved
Takehiko NOZAKI repo owner created an issue

sparc64(v9) arch, generate asm file by dist/crypto/des/asm/des_enc.m4.
but dist/Configurations/unix-Makefile.tmpl call m4 with `m4 -B 8192' option.

          } elsif ($gen0 =~ /\.m4$/) {
              $generator = 'm4 -B 8192'.$gen_incs.' '.$gen0.$gen_args.' >'

this option works only SysV m4, *BSD's PD m4 can't understand and throw error.

thre's several solution:

  • Implements -B option to *BSD's PD m4
  • Tweak dist/Configurations/unix-Makefile.tmpl to make m4 command can overridable.
  • Just drop `-B 8192', Solaris10 is officially EOL and Solaris11 replaces it's m4 implementation with GNU m4, so that this option is no more required.

Comments (4)

  1. Takehiko NOZAKI reporter

    add N*BSD-sparc target and fix Issue #158, #168 and #375

    • Issue #158 - disable hardware GCM128 accelaration before SPARC 32bit(pre V9).
    • Issue #168 - sparc64 asm label fix to workaround for build failure.
    • Issue #375 - Makefile requires obsoleted SysV m4 -B option.

    → <<cset 6101065375b2>>

  2. Takehiko NOZAKI reporter

    add N*BSD-sparc target and fix Issue #158, #168 and #375

    • Issue #158 - disable hardware GCM128 accelaration before SPARC 32bit(pre V9).
    • Issue #168 - sparc64 asm label fix to workaround for build failure.
    • Issue #375 - Makefile requires obsoleted SysV m4 -B option.

    → <<cset 1bdc2eb2d413>>

  3. Takehiko NOZAKI reporter

    add N*BSD-sparc target and fix Issue #158, #168, #375 and #381

    • Issue #158 gcm128.c - disable hardware GCM128 accelaration before SPARC 32bit(pre V9)
    • Issue #168 sparccpuid.S - parc64 asm label fix to workaround for build failure
    • Issue #375 unix-Makefile.tmpl - Makefile requires obsoleted SysV m4 -B option
    • Issue #381 sparccpuid.S - avoid illegal instruction trap

    → <<cset 4c86eecb6f9f>>

  4. Log in to comment