diff options
author | jperkin <jperkin@pkgsrc.org> | 2017-05-18 08:14:08 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2017-05-18 08:14:08 +0000 |
commit | 42872b78059f59e8961277f6f7a6a84cb7ef8040 (patch) | |
tree | eba4cdf1f0d1c5a1663fe9e33f0f12e157ec70b6 /mk/compiler.mk | |
parent | fb33491f093e1c44231d930af19959e5ce4f52e8 (diff) | |
download | pkgsrc-42872b78059f59e8961277f6f7a6a84cb7ef8040.tar.gz |
Consolidate setting of SSP flags now that multiple compilers support it.
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r-- | mk/compiler.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk index 31ab409197f..95c5b69f944 100644 --- a/mk/compiler.mk +++ b/mk/compiler.mk @@ -1,4 +1,4 @@ -# $NetBSD: compiler.mk,v 1.84 2017/05/03 08:34:23 jperkin Exp $ +# $NetBSD: compiler.mk,v 1.85 2017/05/18 08:14:08 jperkin Exp $ # # This Makefile fragment implements handling for supported C/C++/Fortran # compilers. @@ -184,6 +184,16 @@ CWRAPPERS_PREPEND.cxx+= ${_COMPILER_ABI_FLAG.${ABI}} CWRAPPERS_PREPEND.f77+= ${_COMPILER_ABI_FLAG.${ABI}} .endif +# Enable SSP if the user has chosen to and the compiler supports it. +# +.if ${_PKGSRC_USE_SSP} == "yes" && defined(_SSP_CFLAGS) +_WRAP_EXTRA_ARGS.CC+= ${_SSP_CFLAGS} +_WRAP_EXTRA_ARGS.CXX+= ${_SSP_CFLAGS} +CWRAPPERS_APPEND.cc+= ${_SSP_CFLAGS} +CWRAPPERS_APPEND.cxx+= ${_SSP_CFLAGS} +CWRAPPERS_APPEND.f77+= ${_SSP_CFLAGS} +.endif + # If the languages are not requested, force them not to be available # in the generated wrappers. # |