From 3c3baa999e136636cbfc0721d92413b31258bedf Mon Sep 17 00:00:00 2001 From: Alex Lindsay Date: Tue, 19 May 2026 16:29:31 -0600 Subject: [PATCH 1/2] Make sure qhull libs have PIC Not sure why we haven't run into this anywhere else but when linking on Ubuntu 26.04 I'm getting errors saying I need to rebuild the qhull libs with PIC. Co-Authored-By: Claude Sonnet 4.6 --- m4/qhull.m4 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/m4/qhull.m4 b/m4/qhull.m4 index 903e17eb87..43f3002df8 100644 --- a/m4/qhull.m4 +++ b/m4/qhull.m4 @@ -53,9 +53,14 @@ AC_DEFUN([CONFIGURE_QHULL], dnl Build static libraries only to avoid RPATH issues in dnl the build tree. Disable tests and applications to - dnl keep the build lean. + dnl keep the build lean. Force -fPIC on the static + dnl archives so they can be linked into libmesh's shared + dnl library; qhull's CMakeLists only sets + dnl POSITION_INDEPENDENT_CODE on libqhullcpp, not on + dnl libqhullstatic_r. AS_IF([(cd contrib/qhull/build && \ cmake -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DQHULL_ENABLE_TESTING=OFF \ -DBUILD_APPLICATIONS=OFF \ -DCMAKE_INSTALL_PREFIX:PATH=$my_top_builddir/contrib/qhull/install \ From e4a01bd2a05eedd7dce74db0b9bf9be9bbd40830 Mon Sep 17 00:00:00 2001 From: Alex Lindsay Date: Tue, 19 May 2026 16:31:47 -0600 Subject: [PATCH 2/2] Run bootstrap --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6442d4e144..9e7c0225f8 100755 --- a/configure +++ b/configure @@ -59326,8 +59326,9 @@ then : mkdir -p contrib/qhull/install - if (cd contrib/qhull/build && \ + if (cd contrib/qhull/build && \ cmake -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DQHULL_ENABLE_TESTING=OFF \ -DBUILD_APPLICATIONS=OFF \ -DCMAKE_INSTALL_PREFIX:PATH=$my_top_builddir/contrib/qhull/install \