Closed gary-funck closed 11 years ago
I don't know how to do this with CMake. target_link_libraries seems to be ignored for static libs.
Okay. It looks like clang's handling of this is a lot more primitive than gcc's. I'm just going to have to hard-code -lrt in Driver/Tools.cpp.
Confirmed closed: passes the internal test suite and the separate clang upc test suite.
Side note: we removed the non-integer (float) arg. to the upc_barrier compilation test, because this is now allowed by the 1.3 spec.
The intrepid test, test31 fails to link.
Per "man clock_gettime":
When GUPC is configured, it will add -lrt to the linker line on systems linking with librt is required (most modern Linux systems).
The addition of -lrt is handled by this logic in configure.ac in GUPC's libgupc configure logic.