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

Add GLSLANG_BUILD_PIC CMake flag #2319

Merged
merged 1 commit into from
Jul 4, 2020

Conversation

ben-clayton
Copy link
Contributor

@ben-clayton ben-clayton commented Jul 3, 2020

Enables -fPIC compiler flag even when building statically.
This is helpful for statically linking a glslang target into a shared library.

Simplifies the workarounds seen in google/shaderc#1093 to a set(GLSLANG_BUILD_PIC 1).

@ben-clayton ben-clayton changed the title Add GLSANG_BUILD_PIC CMake flag Add GLSLANG_BUILD_PIC CMake flag Jul 3, 2020
Enables `-fPIC` compiler flag even when building statically.
This is helpful for statically linking a `glslang` target into a shared library.

Simplifies the workarounds seen in google/shaderc#1093 to a `set(GLSLANG_BUILD_PIC 1)`.
@johnkslang johnkslang merged commit 257e9a3 into KhronosGroup:master Jul 4, 2020
@ben-clayton ben-clayton deleted the build-pic branch July 4, 2020 05:50
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