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

(develop) cargo pgx new not generates pgx-linker-script.sh in it's template #202

Closed
comdiv opened this issue Sep 21, 2021 · 3 comments
Closed

Comments

@comdiv
Copy link

comdiv commented Sep 21, 2021

So after cargo pgx new my_ext
Building falling with linker /home/comdiv/code/hw/./.cargo/pgx-linker-script.sh not found

@comdiv comdiv changed the title (develop) **cargo pgx new** not generates pgx-linker-script.sh in it's template (develop) cargo pgx new not generates pgx-linker-script.sh in it's template Sep 21, 2021
@comdiv comdiv changed the title (develop) cargo pgx new not generates pgx-linker-script.sh in it's template (develop) cargo pgx new not generates pgx-linker-script.sh in it's template Sep 21, 2021
@comdiv
Copy link
Author

comdiv commented Sep 21, 2021

Have added manually from pgx repository itself:

#! /usr/bin/env bash
# Auto-generated by pgx. You may edit this, or delete it to have a new one created.

if [[ $CARGO_BIN_NAME == "sql-generator" ]]; then
    gcc -Wl,-undefined,dynamic_lookup,-dynamic-list=$CARGO_MANIFEST_DIR/.cargo/pgx-dynamic-list.txt $@
else
    gcc -Wl,-undefined,dynamic_lookup $@
fi

@Hoverbear
Copy link
Contributor

Thanks for this! We spoke on Discord and you have it sorted. :)

comdiv added a commit to comdiv/pgx that referenced this issue Sep 22, 2021
@Hoverbear
Copy link
Contributor

This is fixed in #197 which is merged into develop. :)

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