Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross compiling targeting musl #540

Open
clauderobi opened this issue Feb 14, 2023 · 1 comment
Open

Cross compiling targeting musl #540

clauderobi opened this issue Feb 14, 2023 · 1 comment

Comments

@clauderobi
Copy link

Hi, I am trying to cross-compile (crosstool-ng 1.25.0) targeting gcc + musl (for Alpine and for fully static link, since glibc is not fully static).

I am getting this error during the configuration phase:

Could NOT find Threads (missing: Threads_FOUND)

In the tool chain location, phtread.h can be found.

I am using crosstool-ng, and thus cross-compile successfully, to target gcc + glibc

Anyone successfully compile with musl?

I am using the following arguments for cmake:

  ENABLE_DEBUG_ALL: "OFF"
  ENABLE_DEBUG_SERVER: "OFF"
  ENABLE_DEBUG_STUB: "OFF"
  ENABLE_DEBUG_REQ: "OFF"
  BUILD_LIBEV: "OFF"
  BUILD_LIBEVENT2: "OFF"
  BUILD_LIBUV: "OFF"
  BUILD_STUBBY: "OFF"
  BUILD_TESTING: "OFF"
  BUILD_GETDNS_SERVER_MON: "OFF"
  ENABLE_SHARED: "OFF"
  ENABLE_STATIC: "ON"
  ENABLE_STUB_ONLY: "ON"
  USE_LIBIDN2: "OFF"

and a few others related to openSSL

@saradickinson
Copy link
Contributor

Haven't done this myself but I found this older issue: getdnsapi/stubby#245 relating to building 1.6.0 successfully which might be some help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants