Skip to content

Always compile embedded C/C++ code with -fPIC - #63

Merged
georgestagg merged 1 commit into
r-wasm:mainfrom
jeroen:ggsql
Aug 20, 2026
Merged

Always compile embedded C/C++ code with -fPIC #63
georgestagg merged 1 commit into
r-wasm:mainfrom
jeroen:ggsql

Conversation

@jeroen

@jeroen jeroen commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

This fixes rust packages containing C/C++ code, such as ggsql (which embeds duckdb). I think it makes sense to do this globally, as all code will eventually end up in the package shared module, and the package may not even be aware that it is targeting wasm.

Before: https://github.com/r-universe/cran/actions/runs/30764904729/job/93889416606
After: https://github.com/r-universe/cran/actions/runs/30764904729/job/93913762138

Another exampe:
Before: https://github.com/r-universe/posit-dev/actions/runs/31491587902/job/93780103387
After: https://github.com/r-universe/posit-dev/actions/runs/31491587902

…p in the shared module. Needed for e.g. ggsql.

@georgestagg georgestagg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@georgestagg
georgestagg merged commit cf3e363 into r-wasm:main Aug 20, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants