R. David Murray added the comment:
Please describe the problem and your proposed solution in more detail and in
terms of CPython, so that it can be discussed by the relevant experts. GDAL is
a third party product and only relevant as an example, so it would also be good
to come up with a bet
New submission from Eduardo Suarez-Santana :
When compiling GDAL with python support, under certain build chain environment
variables, next error may appear when building and linking python extensions
(https://www.mail-archive.com/freebsd-ports@freebsd.org/msg41030.html):
/bin/sh: -d: invalid