Skip to content

ld: unknown option: -z error for osx build#59

Description

@chenrui333

馃憢 trying to build the latest release, but run into some build issue. The error log is as below:

build error
  ==> make check LDFLAGS= CFLAGS_EXTRA=
  clang  -D_FORTIFY_SOURCE=2 -fPIC   -c -o main.o main.c
  clang  -D_FORTIFY_SOURCE=2 -fPIC   -c -o crypto_scrypt-hexconvert.o crypto_scrypt-hexconvert.c
  ln -s -f libscrypt.so.0 libscrypt.so
  clang -o reference main.o b64.o crypto_scrypt-hexconvert.o  -D_FORTIFY_SOURCE=2 -fPIC -Wl,-z,relro -L.  -lscrypt
  ld: unknown option: -z
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make: *** [reference] Error 1

full build log, https://github.com/Homebrew/homebrew-core/runs/5154594733
relates to Homebrew/homebrew-core#94934

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions