Skip to content

Commit 23c5c52

Browse files
committed
libressl.sh: use -DOPENSSL_NO_FILENAMES with next version [ci skip]
openbsd/src@69fa30d libressl/portable#761
1 parent 42c92bf commit 23c5c52

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libressl.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ _VER="$1"
3535
rm -r -f "${_PKGDIR:?}" "${_BLDDIR:?}"
3636

3737
options=''
38-
CFLAGS="-ffile-prefix-map=$(pwd)=" # Pending: https://github.com/libressl/portable/issues/761
38+
CFLAGS=''
3939
CPPFLAGS=''
40+
if [ "${LIBRESSL_VER_}" = '4.0.0' ]; then
41+
CFLAGS+=" -ffile-prefix-map=$(pwd)=" # MERGED: https://github.com/libressl/portable/issues/761
42+
else
43+
CPPFLAGS+=' -DOPENSSL_NO_FILENAMES'
44+
fi
4045

4146
if [[ "${_CONFIG}" != *'debug'* ]]; then
4247
CPPFLAGS+=' -DNDEBUG'

0 commit comments

Comments
 (0)