Skip to content

Commit

Permalink
unix: remove libressl patch
Browse files Browse the repository at this point in the history
This patch is no longer needed as it is incorporated in the
version we're now using.
  • Loading branch information
indygreg committed Oct 26, 2019
1 parent 972144e commit 84fc7d1
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions cpython-unix/build-libressl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,6 @@ tar -xf libressl-${LIBRESSL_VERSION}.tar.gz

pushd libressl-${LIBRESSL_VERSION}

# Backport of https://github.com/libressl-portable/portable/pull/529 for MUSL support.
patch -p1 << EOF
diff --git a/crypto/compat/getprogname_linux.c b/crypto/compat/getprogname_linux.c
index 2c89743..4e7e31f 100644
--- a/crypto/compat/getprogname_linux.c
+++ b/crypto/compat/getprogname_linux.c
@@ -26,9 +26,7 @@ getprogname(void)
#if defined(__ANDROID_API__) && __ANDROID_API__ < 21
extern const char *__progname;
return __progname;
-#elif defined(__GLIBC__)
- return program_invocation_short_name;
#else
-#error "Cannot emulate getprogname"
+ return program_invocation_short_name;
#endif
}
EOF

CFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC" CPPFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC" ./configure \
--build=${BUILD_TRIPLE} \
--host=${TARGET_TRIPLE} \
Expand Down

0 comments on commit 84fc7d1

Please sign in to comment.