blob: 260ca0c13d010cd0182e281081b28cf02773a74c [file] [log] [blame]
# All we need to do here is control the
# build of chosen platform
if(FREEBSD)
SET(gos_STAT_SRCS
freebsd/atsyscalls.c
freebsd/mntent_compat.c
freebsd/subr.c
freebsd/xattr.c
freebsd/memstream.c
)
endif(FREEBSD)
if(LINUX)
SET(gos_STAT_SRCS
linux/subr.c
)
endif(LINUX)
add_library(gos STATIC ${gos_STAT_SRCS})
add_sanitizers(gos)
########### install files ###############
# This is GCC specific to force PIC compiles.
# cmake 2.8.9 has a portable POSITION_INDEPENDENT_CODE property that can be
# used when it is available
set_target_properties(gos PROPERTIES COMPILE_FLAGS "-fPIC")