aboutsummaryrefslogtreecommitdiffstats
path: root/misc/mbuffer/files/patch-configure.in
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-10-05 09:19:31 +0100
committerLexi Winter <ivy@FreeBSD.org>2025-10-05 09:19:31 +0100
commitf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (patch)
treead799ccacfb459b809b02b9c115ed4befb93b4c1 /misc/mbuffer/files/patch-configure.in
parent0b1510fe1f98f82da6f3481cb6c58957022d9211 (diff)
parentb057c68280a2f2a7b3d1fbac36f7b034e1fdf593 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/main
Diffstat (limited to 'misc/mbuffer/files/patch-configure.in')
-rw-r--r--misc/mbuffer/files/patch-configure.in16
1 files changed, 15 insertions, 1 deletions
diff --git a/misc/mbuffer/files/patch-configure.in b/misc/mbuffer/files/patch-configure.in
index 9f8ba6fff9ee..ce9668ed526c 100644
--- a/misc/mbuffer/files/patch-configure.in
+++ b/misc/mbuffer/files/patch-configure.in
@@ -13,7 +13,12 @@
Remove md5 and only searches for md here to avoid linking with lib/libmd5.*
installed by www/libwww.
---- configure.in.orig 2023-02-27 19:18:52 UTC
+- CFLAGS="-O0" was introduced since mbuffer-20250429, this overrides the PIE_CFLAGS
+ if the port is built with WITH_PIE, while LDFLAGS=-pie is passed to the compiler,
+ and it results in this error message:
+ ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC
+
+--- configure.in.orig 2025-04-29 23:11:07 UTC
+++ configure.in
@@ -104,7 +104,7 @@ AC_PROG_INSTALL
AC_SUBST(CFLAGS)
@@ -42,3 +47,12 @@
AC_CHECK_HEADER(md5.h,AC_DEFINE([HAVE_MD5_H],[1],[found md5.h]),)
AC_SEARCH_LIBS(MD5_Init,crypto,AC_DEFINE([HAVE_LIBCRYPTO], [1], [Define to 1 if you have the OpenSSL crypto library]),)
fi
+@@ -156,7 +156,7 @@ else
+ AC_MSG_WARN([unable to find objdump, which is needed to run tests])
+ else
+ cflags_tmp="${CFLAGS}"
+- CFLAGS="-O0"
++ CFLAGS="${CFLAGS} -O0"
+ AC_MSG_CHECKING([linking open() and write() to detect libc names])
+ AC_LINK_IFELSE([
+ AC_LANG_SOURCE([[