Skip to content

Instantly share code, notes, and snippets.

@holishing
Created November 17, 2019 14:25
Show Gist options
  • Save holishing/deacbd7c46c50dcda6ae0715167d466c to your computer and use it in GitHub Desktop.
Save holishing/deacbd7c46c50dcda6ae0715167d466c to your computer and use it in GitHub Desktop.
LuaJIT epel8 i686 build patch
diff --git a/luajit.spec b/luajit.spec
index db4e9fc..2cb4cac 100644
--- a/luajit.spec
+++ b/luajit.spec
@@ -137,6 +137,12 @@ sed -i -e '/install -m/s/-m/-p -m/' Makefile
# Q= - enable verbose output
# E= @: - disable @echo messages
# NOTE: we use amalgamated build as per documentation suggestion doc/install.html
+%ifarch i686
+make amalg CC="gcc -m32" Q= E=@: PREFIX=%{_prefix} TARGET_STRIP=: \
+ CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" \
+ MULTILIB=%{_lib} \
+ %{?_smp_mflags}
+%endif
make amalg Q= E=@: PREFIX=%{_prefix} TARGET_STRIP=: \
CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" \
MULTILIB=%{_lib} \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment