Skip to content

Any option to disable --with-unixodbc in macOS Homebrew build? #337

Open
@jj1bdx

Description

@jj1bdx

By the merged PR #334, macOS builds with Homebrew are automatically set --with-unixodbc=/where/unixodbc/resides option. This will conflict with manually set --without-odbc option in the KERL_CONFIGURE_OPTIONS calling asdf (and asdf-erlang). Is there any way to override this automatic --with-unixodbc setting?

BTW, my usage of asdf-erlang is in the following shell script:
($1 is an OTP version number)

#!/bin/sh
# General build options
OTP_VERSION=$1
OPENSSL_LOCAL="/opt/homebrew/opt/openssl@3"
CONFIGURE_OPTIONS=" \
  --with-ssl=${OPENSSL_LOCAL} \
  --enable-kernel-poll \
  --enable-dirty-schedulers \
  --enable-jit \
  --disable-sctp \
  --disable-dynamic-ssl-lib \
  --disable-sharing-preserving \
  --without-javac \
  --without-odbc \
  --without-wx \
  --without-debugger \
  --without-observer \
  --without-crashdump_viewer \
  --without-et \
  --without-tftp \
  --without-ftp \
  --without-megaco \
  --without-eldap \
  --without-diameter \
  --without-jinterface \
  "
INSTALL_DIR_PREFIX="/home/kenji/otp/"
INSTALL_NAME=${OTP_VERSION}
#
#WXCONFIG_LOCAL="/opt/wx-3.2/bin/wx-config"
#CONFIGURE_OPTION_WX="--with-wx-config=${WXCONFIG_LOCAL}"
#
env \
    CC=/usr/bin/clang \
    CXX=/usr/bin/clang++ \
    CFLAGS="-O3 -fstack-protector-strong" \
    LDFLAGS="-fstack-protector-strong" \
    MAKEFLAGS="-j$(nproc)" \
    OTP_GITHUB_URL="https://github.com/jj1bdx/otp/" \
    KERL_BUILD_DOCS="yes" \
    KERL_DOC_TARGETS="chunks" \
    KERL_BUILD_PLT="yes" \
    KERL_CONFIGURE_OPTIONS="${CONFIGURE_OPTIONS}" \
    asdf install erlang ${OTP_VERSION}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions