# 
#     Copyright (c) 2023, NVIDIA CORPORATION.  All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto.  Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.
# 

# Common compiler configurations for Linux targets
#

switch -Bstatic is
	help(Passed to linker; specify static binding)
	helpgroup(linker)
	positional(linker)
	set(PGISTATICX=-Bstatic)
	set(PGISTATIC=-Bstatic)
	set(PGIUNSTATICX=)
	set(PGIUNSTATIC=)
	set(LCRTBDEF=$GCCDIR/crtbeginT.o)
	set(STATICLIB=1)
	set(STDRPATH=$if($equal($NOPGIRPATH,YES),,-rpath $COMPBASE/$COMPSYS/$COMPVER/$COMPLIBSUBDIR));

switch -rdynamic is
    help(gnu compatible -rdynamic switch passes -export-dynamic to the linker)
	helpgroup(linker)
	append(LDARGS=-export-dynamic );
