File: Linux.cmake

package info (click to toggle)
geogram 1.9.6-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 15,436 kB
  • sloc: cpp: 143,890; ansic: 10,098; perl: 1,430; sh: 1,199; yacc: 522; lex: 182; python: 157; javascript: 149; makefile: 17
file content (19 lines) | stat: -rw-r--r-- 758 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#-------------------------------------------------------------------
# Flags common to all Linux based platforms
#-------------------------------------------------------------------

# Shell script extension
set(SHELL_SUFFIX "sh")

# This flag MUST be added to solve a bug related to shared lib dynamic loading
# (std::type_infos representing the same template type do not compare equal,
# introducing subtle bugs)
# IMPORTANT: DO NOT ADD THIS FLAG WITH STATIC LINKING
#add_flags(CMAKE_EXE_LINKER_FLAGS "-Wl,-E")

# Forbid undefined symbols at link time (shared libraries and executables)
add_flags(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
add_flags(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-undefined")

# Link with the loader library
list(APPEND SYSLIBS dl)