-
Notifications
You must be signed in to change notification settings - Fork 282
mac build failing on export CGO_LDFLAGS="-F${PWD} -Wl,-rpath,@executable_path" #93
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
Comments
The directory IS there. Must be something else i am doing wrong ?
|
Can you try (In the |
@Drakirus thanks for your help. I got the same result using export CGO_LDFLAGS="-F. -Wl,-rpath,@executable_path"
I am trying to automate this to finally build a standard magefile we can all use. a usr only need to run:
my current Makefile
|
Does it work when you aren't using Make? |
ok let me try using a .sh down in the dir. |
Ok so i made a run.sh that i just copy into the Demo directory from the Makefile Make file:
run.sh file:
shell log:
|
Clang's framework search paths seems to ignore A quick and dirty solution would be to throw Edit: The |
thanks ! SO i got it working with CGO_LDFLAGS="-F${PWD}". on mac after all. Now i can make the Magefile :) But i like your idea of making CGO use the /usr/local/lib |
Please share with us how you managed to fix the issue!!
Again, Since we use More info at https://wincent.com/wiki/%40executable_path%2C_%40load_path_and_%40rpath and #34 (comment) |
I will share :). Just gotta finish the Mage file so its cross platform. But it would be good to do it right, so i need to know about packaging. |
no |
ok thanks. |
I got it all working. @GeertJohan @Drakirus DO you want the Mage file ? |
actually closing this because its relating to another issue. |
Flutter version
Golang errors (Optional)
Steps to Reproduce
The text was updated successfully, but these errors were encountered: