version 1.5, 2022/02/23 16:01:20 |
version 1.6, 2022/02/24 09:17:59 |
Line 93 CONFIGURE_ENV+= CONF_GCC_LINKER_OPTS_STA |
|
Line 93 CONFIGURE_ENV+= CONF_GCC_LINKER_OPTS_STA |
|
# the buildlink. |
# the buildlink. |
.endfor |
.endfor |
|
|
# The use of internal variable in mk/bsd.prefs.mk is not very satisfying, |
# The use of internal variable ${_PKGSRC_MKPIE} in mk/bsd.prefs.mk is not |
# but the current infrastructure does not export a public variable |
# very satisfying, but the current infrastructure does not export a public |
# indicating whether a PIE build is requested or not. Note that we can't |
# variable indicating whether a PIE build is requested or not. Note that we |
# build stage-1 compiler as PIE, because our bootkit libraries aren't |
# can't build stage-1 compiler as PIE, because our bootkit libraries aren't |
# necessarily built as PIC. |
# necessarily built as PIC. |
.for stage in 0 1 2 |
.for stage in 0 1 2 |
. if ${stage} == 0 |
. if ${stage} == 0 |
CONFIGURE_ENV+= CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q} |
CONFIGURE_ENV+= CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q} |
. else |
. else |
CONFIGURE_ENV+= CONF_HC_OPTS_STAGE${stage}=-fPIC\ ${_OPSYS_SUPPORTS_MKPIE:D-pie} |
. if ${_PKGSRC_MKPIE} == "yes" |
|
CONFIGURE_ENV+= CONF_HC_OPTS_STAGE${stage}=-fPIC\ -pie |
CONFIGURE_ENV+= CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q}\ -fPIC |
CONFIGURE_ENV+= CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q}\ -fPIC |
|
. else |
|
CONFIGURE_ENV+= CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q} |
|
. endif |
. endif |
. endif |
.endfor |
.endfor |
|
|