platform-linux.mk 614 B

12345678910111213141516171819
  1. # Configuration for Linux machines.
  2. # Does platform support symlinks?
  3. USE_SYMLINK:=true
  4. # File name extension of executables.
  5. EXEEXT:=
  6. LIBRARYEXT:=.so
  7. # In glibc the function clock_gettime() is defined in the librt library. In
  8. # uClibc it's defined in libc itself. We should write a function that actually
  9. # tests which library defines it. But as a temporary workaround/hack we figure
  10. # out the linker flags based on the occurrence of the substring uclibc inside
  11. # the compiler executable name (e.g. for Dingoo we don't need to link against
  12. # librt).
  13. ifeq (,$(findstring uclibc,$(CXX)))
  14. LINK_FLAGS+=-lrt
  15. endif