{"action":"created","issue":{"url":"https://api.github.com/repos/elixircnx/comeonin/issues/69","labels_url":"https://api.github.com/repos/elixircnx/comeonin/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/elixircnx/comeonin/issues/69/comments","events_url":"https://api.github.com/repos/elixircnx/comeonin/issues/69/events","html_url":"https://github.com/elixircnx/comeonin/issues/69","id":127725861,"number":69,"title":"cross-compile with bakeware.io / nerves","user":{"login":"ssachse","id":16802586,"avatar_url":"https://avatars.githubusercontent.com/u/16802586?v=3","gravatar_id":"","url":"https://api.github.com/users/ssachse","html_url":"https://github.com/ssachse","followers_url":"https://api.github.com/users/ssachse/followers","following_url":"https://api.github.com/users/ssachse/following{/other_user}","gists_url":"https://api.github.com/users/ssachse/gists{/gist_id}","starred_url":"https://api.github.com/users/ssachse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssachse/subscriptions","organizations_url":"https://api.github.com/users/ssachse/orgs","repos_url":"https://api.github.com/users/ssachse/repos","events_url":"https://api.github.com/users/ssachse/events{/privacy}","received_events_url":"https://api.github.com/users/ssachse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T16:46:11Z","updated_at":"2016-01-20T19:00:25Z","closed_at":null,"body":"Hello I am trying to use the library with the use of bakeware.io to cross-compile on OS X for the rpi2 ...\r\nUsing\r\n```\r\ndefp deps do\r\n    [     \r\n      ...\r\n      {:comeonin, \"~> 2.0\"},\r\n     ....\r\n   ]\r\n  end\r\n```\r\nWhen using\r\n```\r\nbake firmware\r\n```\r\nI get following error:\r\n```\r\n.nerves/toolchains/nerves-arm-unknown-linux-gnueabihf-darwin-x86_64-v0.5.0/bin/arm-unknown-linux-gnueabihf-gcc -g -O3 -Wall -I/Users/stefan/.nerves/toolchains/nerves-arm-unknown-linux-gnueabihf-darwin-x86_64-v0.5.0/lib/erlang/erts-7.1/bin/../../erts-7.1/include -Ic_src -fPIC -shared  -dynamiclib -undefined dynamic_lookup -o priv/bcrypt_nif.so c_src/bcrypt_nif.c c_src/blowfish.c\r\narm-unknown-linux-gnueabihf-gcc: error: dynamic_lookup: No such file or directory\r\nmake: *** [priv/bcrypt_nif.so] Error 1\r\ncould not compile dependency :comeonin, \"mix compile\" failed. You can recompile this dependency with \"mix deps.compile comeonin\", update it with \"mix deps.update comeonin\" or clean it with \"mix deps.clean comeonin\"\r\n==> comeonin\r\n** (Mix.Error) Could not compile Comeonin.\r\n```\r\n\r\nLooking through the Makefile I see\r\n```\r\n...\r\nifneq ($(OS),Windows_NT)\r\n\tCFLAGS += -fPIC\r\n\r\n\tifeq ($(shell uname),Darwin)\r\n\t\tLDFLAGS += -dynamiclib -undefined dynamic_lookup\r\n\tendif\r\nendif\r\n...\r\n```\r\nSo even within a cross-compile environment comeonin uses uname to detect Darwin ....\r\n\r\nHow could I cross-compile this under OS X ? Please help "},"comment":{"url":"https://api.github.com/repos/elixircnx/comeonin/issues/comments/173325176","html_url":"https://github.com/elixircnx/comeonin/issues/69#issuecomment-173325176","issue_url":"https://api.github.com/repos/elixircnx/comeonin/issues/69","id":173325176,"user":{"login":"kotedo","id":86982,"avatar_url":"https://avatars.githubusercontent.com/u/86982?v=3","gravatar_id":"","url":"https://api.github.com/users/kotedo","html_url":"https://github.com/kotedo","followers_url":"https://api.github.com/users/kotedo/followers","following_url":"https://api.github.com/users/kotedo/following{/other_user}","gists_url":"https://api.github.com/users/kotedo/gists{/gist_id}","starred_url":"https://api.github.com/users/kotedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotedo/subscriptions","organizations_url":"https://api.github.com/users/kotedo/orgs","repos_url":"https://api.github.com/users/kotedo/repos","events_url":"https://api.github.com/users/kotedo/events{/privacy}","received_events_url":"https://api.github.com/users/kotedo/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T19:00:25Z","updated_at":"2016-01-20T19:00:25Z","body":"I wonder if you suffer from the same thing as this discussion here: https://github.com/elixircnx/comeonin/issues/64"}}