PKGBUILDs/community/lrs/32-bit-support.patch
2022-03-31 13:18:52 +00:00

46 lines
1.1 KiB
Diff

--- makefile.orig 2022-03-31 07:06:10.873873950 -0600
+++ makefile 2022-03-31 07:08:04.717729216 -0600
@@ -8,10 +8,10 @@
#try uncommenting next line if cc is the default C compiler
CC = gcc # or gcc7
-default: lrs lrsgmp lrsnash checkpred inedel
+#default: lrs lrsgmp lrsnash checkpred inedel
#choose line below instead if __int128 not supported
-#default: lrs64 lrsgmp
+default: lrs64 lrsgmp
#make lrs lrs,lrsgmp hybrid and gmp versions
#make lrs64 lrs,lrsgmp compilers without 128 bit support
@@ -45,12 +45,12 @@
# for 32 bit machines
-# BITS=
-# MPLRSOBJ2=
+BITS=
+MPLRSOBJ2=
# for 64 bit machines
-BITS=-DB128
-MPLRSOBJ2=lrslib2-mplrs.o lrslong2-mplrs.o
+#BITS=-DB128
+#MPLRSOBJ2=lrslib2-mplrs.o lrslong2-mplrs.o
LRSOBJ=lrs.o lrslong1.o lrslong2.o lrslib1.o lrslib2.o lrslibgmp.o lrsgmp.o lrsdriver.o
@@ -216,11 +216,11 @@
SHLIB ?=$(SONAME)$(SOMINOR)
SHLINK ?=liblrs.so
-SHLIBOBJ2=lrslib2-shr.o lrslong2-shr.o
+#SHLIBOBJ2=lrslib2-shr.o lrslong2-shr.o
# for 32 bit machines
-# SHLIBOBJ2=
+SHLIBOBJ2=
SHLIBOBJ=lrslong1-shr.o lrslib1-shr.o \
lrslibgmp-shr.o lrsgmp-shr.o lrsdriver-shr.o \