[flang] Fix problems building with shared libraries on Linux

Building with gcc 8 or 9 with shared libraries had linking
problems in test/evaluate. Fix those by adding FortranSemantics
to the library dependencies.

Original-commit: flang-compiler/f18@009b9ab171
Reviewed-on: https://github.com/flang-compiler/f18/pull/639
This commit is contained in:
Tim Keith 2019-08-08 16:23:53 -07:00
parent ee2dd1c503
commit 57af252f56
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,7 @@ add_executable(leading-zero-bit-count-test
target_link_libraries(leading-zero-bit-count-test
FortranEvaluateTesting
FortranEvaluate
FortranSemantics
)
add_executable(bit-population-count-test
@ -33,6 +34,7 @@ add_executable(bit-population-count-test
target_link_libraries(bit-population-count-test
FortranEvaluateTesting
FortranEvaluate
FortranSemantics
)
add_executable(expression-test
@ -53,6 +55,7 @@ add_executable(integer-test
target_link_libraries(integer-test
FortranEvaluateTesting
FortranEvaluate
FortranSemantics
)
add_executable(intrinsics-test
@ -74,6 +77,7 @@ add_executable(logical-test
target_link_libraries(logical-test
FortranEvaluateTesting
FortranEvaluate
FortranSemantics
)
# GCC -fno-exceptions breaks the fenv.h interfaces needed to capture
@ -88,6 +92,7 @@ add_executable(real-test
target_link_libraries(real-test
FortranEvaluateTesting
FortranEvaluate
FortranSemantics
m
)
@ -109,6 +114,7 @@ add_executable(ISO-Fortran-binding-test
target_link_libraries(ISO-Fortran-binding-test
FortranEvaluateTesting
FortranEvaluate
FortranSemantics
FortranRuntime
)