PKGBUILDs/extra/lrs/32-bit-support.patch

47 lines
1.1 KiB
Diff
Raw Normal View History

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