# These are ALL the variables/macros used by the KerGIS build tree
# These default to POSIX compliant ones
# $Id: C_gcc,v 1.10 2007/02/18 16:07:12 tlaronde Exp $
#
# Copyright 2004 Thierry LARONDE <tlaronde@polynum.com>
# Public Domain. NO GUARANTEES!

# overwrite the defaults
include C_posix

RK_COMPILE_ENV=gcc

#----- POSIX known (or definable)
CC="gcc"
CFLAGS="-O -fno-builtin -Wall -Wstrict-prototypes -Wmissing-prototypes"

#----- ABI dependencies. 
# shared stuff is highly ABI dependent and is not defined by POSIX
LDFLAGS=
LDFLAGS_STATIC="-Wl,-static"

# LIBPATH, RPATH and SONAME are generated by `rkbuild'
LD_DSHARED="gcc -shared"
CFLAGS_DSHARED="-fPIC"
LDFLAGS_DSHARED=

# ELF object link specific
# How to define the SONAME of a ELF shared lib
LDFLAGS_ELF_SONAME='-Wl,-soname,##SONAME##'

# How to set a rpath in a ELF object
LDFLAGS_ELF_RPATH='-Wl,-R##RPATH##'

# How to specify link time dir path to search for included dshared libes
LDFLAGS_ELF_RPATH_LINK='-Wl,-rpath-link,##LIBPATH##'
