diff -pruN 0.9.1-1/debian/changelog 0.9.1-1ubuntu1/debian/changelog
--- 0.9.1-1/debian/changelog	2025-09-15 12:53:36.000000000 +0000
+++ 0.9.1-1ubuntu1/debian/changelog	2025-09-16 08:28:59.000000000 +0000
@@ -1,3 +1,10 @@
+libnginx-mod-js (0.9.1-1ubuntu1) questing; urgency=medium
+
+  * Force O2 on ppc64el, fixing FTBFS
+    see: https://github.com/nginx/njs/issues/964
+
+ -- Gianfranco Costamagna <locutusofborg@debian.org>  Tue, 16 Sep 2025 10:28:59 +0200
+
 libnginx-mod-js (0.9.1-1) unstable; urgency=medium
 
   * New upstream version 0.9.1. Closes: #1097236.
diff -pruN 0.9.1-1/debian/rules 0.9.1-1ubuntu1/debian/rules
--- 0.9.1-1/debian/rules	2025-09-15 12:53:36.000000000 +0000
+++ 0.9.1-1ubuntu1/debian/rules	2025-09-16 08:28:59.000000000 +0000
@@ -2,6 +2,11 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+ifeq ($(DEB_HOST_ARCH),ppc64el)
+  export DEB_CFLAGS_MAINT_STRIP = -O3
+  export DEB_CFLAGS_MAINT_APPEND = -O2
+endif
+
 # nginx_mod needs to find the modules source dir using sourcedirectory
 # nginx_mod calls doit_in_builddir but without builddirectory,
 # it tries to chdir from sourcedirectory and fails
