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

flang: libflangrti.so should depend on libompstub.so instead of libomp.so #24

Open
wants to merge 1 commit into
base: release_60
Choose a base branch
from

Commits on Jul 10, 2018

  1. flang: libflangrti.so should depend on libompstub.so instead of libom…

    …p.so
    
    This commit is a clang part of a change that drops unfortunate
    dependency of libflangrti.so on libomp.so.
    
    For non-OpenMP programs (built without -fopenmp flag) frontend
    driver instructs the linker to link against libompstub.so library,
    which exports stubs for all OpenMP runtime library symbols. This is
    because Flang runtime library contains calls to those symbols
    (for OpenMP programs, final binary is linked against libomp.so
    instead).
    
    Apart form above, all of the Fortran programs are linked against
    libflang.so and libflangrti.so. Unfortunately, before this change
    libflangrti.so was depending on full blown OpenMP runtime library
    (libomp.so).
    
    This change creates two sets of Flang runtime shared objects with
    following chains of dependencies:
    
    1. libflang.so -> libflangrti.so -> libompstub.so
    2. libflang-omp.so -> libflangrti-omp.so -> libomp.so
    
    Note that before this commit is applied, relevant commit must be
    applied on flang repository first. Otherwise all OpenMP Fortran programs
    will fail to build at link time.
    
    Signed-off-by: Paul Osmialowski <[email protected]>
    pawosm-arm committed Jul 10, 2018
    Configuration menu
    Copy the full SHA
    051bfac View commit details
    Browse the repository at this point in the history