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

How to build TBB with static-libgcc and static-libstdc++ ? #1301

Closed
fdiedler opened this issue Jan 24, 2024 · 3 comments
Closed

How to build TBB with static-libgcc and static-libstdc++ ? #1301

fdiedler opened this issue Jan 24, 2024 · 3 comments
Labels

Comments

@fdiedler
Copy link

Hi everyone,

I need to build TBB with static-libgcc and static-libstdc++ but I see no option in Cmake to do it.
I don't know with line to edit for the makefiles.

Can you help me ? I want to avoid the dependency of the libgcc_s_seh-1.dll file

Thanks,

@dnmokhov
Copy link
Contributor

You can use the TBB_LIB_LINK_FLAGS option:

cmake -DTBB_LIB_LINK_FLAGS="-static-libgcc;-static-libstdc++" ..

or set it directly in https://github.com/oneapi-src/oneTBB/blob/2a6bd1e198106e1447ee885db92b0a3223c9cc1e/cmake/compilers/GNU.cmake#L75-L77

@fdiedler
Copy link
Author

fdiedler commented Jan 25, 2024

Thanks @dnmokhov it works fine. Maybe add this option in the CMake GUI for the next release ?

@dnmokhov
Copy link
Contributor

@fdiedler, you can use the native CMAKE_SHARED_LINKER_FLAGS, which is available in the CMake GUI and has similar functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants